Skip to content

Commit c542c5e

Browse files
authored
This flag fixes compilation error in my vm (#303)
1 parent 7fae549 commit c542c5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

program/c/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ cpyth-bpf:
77
bash -c "ar rcs target/libcpyth-bpf.a target/**/*.o"
88
cpyth-native:
99
# Compile C code to system architecture for use by rust's cargo test
10-
gcc -c ./src/oracle/native/upd_aggregate.c -o ./target/cpyth-native.o
10+
gcc -c ./src/oracle/native/upd_aggregate.c -o ./target/cpyth-native.o -fPIC
1111
# Bundle C code compiled to system architecture for use by rust's cargo test
1212
ar rcs target/libcpyth-native.a ./target/cpyth-native.o

0 commit comments

Comments
 (0)