Skip to content

Commit

Permalink
This flag fixes compilation error in my vm (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos authored Nov 4, 2022
1 parent 7fae549 commit c542c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion program/c/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ cpyth-bpf:
bash -c "ar rcs target/libcpyth-bpf.a target/**/*.o"
cpyth-native:
# Compile C code to system architecture for use by rust's cargo test
gcc -c ./src/oracle/native/upd_aggregate.c -o ./target/cpyth-native.o
gcc -c ./src/oracle/native/upd_aggregate.c -o ./target/cpyth-native.o -fPIC
# Bundle C code compiled to system architecture for use by rust's cargo test
ar rcs target/libcpyth-native.a ./target/cpyth-native.o

0 comments on commit c542c5e

Please sign in to comment.