From 72a4a0d2500a2785c30c71953efb916dd302765e Mon Sep 17 00:00:00 2001 From: Guillermo Bescos Date: Thu, 3 Nov 2022 21:19:59 +0000 Subject: [PATCH] This flag fixes compilation error in my vm --- program/c/makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/c/makefile b/program/c/makefile index fbc9832b6..aafd89d7e 100644 --- a/program/c/makefile +++ b/program/c/makefile @@ -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