Skip to content

Commit

Permalink
Lambdaf: build with fpic
Browse files Browse the repository at this point in the history
  • Loading branch information
alimpfard committed Jun 1, 2020
1 parent 962e81e commit f28231c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions make-lambdaf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ AR=ar
# gcc -Wall -Wextra -Q --help=warning | grep "\[disabled\]"
# note: -Wswitch-enum looks helpful, but doesn't allow default case
# to catch multiple cases, which we are using
CC_FLAGS="-c -std=c99 -Ilambdaf/"
CC_FLAGS="-c -std=c99 -fpic -Ilambdaf/"


# gcc sets --hash-style to a non-default setting when calling ld, which
Expand Down Expand Up @@ -52,7 +52,7 @@ build() {
if ! is_up_to_date "$OUT"; then
xxd -i 'lambdaf/stdlib.zero' | sed 's/};/, 0x00};/' > lambdaf/lstdlib.h &&
echoexec $CC $CC_FLAGS $SOURCES &&
echoexec $CC -shared -o :"$OUT" $FOBJECTS &&
echoexec $CC -shared -fpic -o "$OUT" $FOBJECTS &&
rm -f $FOBJECTS &&
echo &&
echo "BUILD SUCCESSFUL:" &&
Expand Down

0 comments on commit f28231c

Please sign in to comment.