Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

Commit

Permalink
Add -fPIC to C fallback library
Browse files Browse the repository at this point in the history
  • Loading branch information
PlasmaPower committed Mar 14, 2018
1 parent 6043bf5 commit d156b1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Makevars
Expand Up @@ -26,7 +26,7 @@ else

rustlib/target/release/librustlib.a: rustlib/fallback.c $(wildcard rustlib/target/release/lib_built)
mkdir -p rustlib/target/release
$(CC) -I"$(R_INCLUDE_DIR)" $(CFLAGS) -L"$(R_LIBRARY_DIR)" -lR -c rustlib/fallback.c -o rustlib/target/release/fallback.o
$(CC) -I"$(R_INCLUDE_DIR)" $(CFLAGS) -L"$(R_LIBRARY_DIR)" -lR -c rustlib/fallback.c -fPIC -o rustlib/target/release/fallback.o
rm -f rustlib/target/release/librustlib.a
$(AR) rcs rustlib/target/release/librustlib.a rustlib/target/release/fallback.o
touch rustlib/target/release/fallback_built
Expand Down

0 comments on commit d156b1b

Please sign in to comment.