Parlib and other user libs are built with -fPIC
[akaros.git] / Makefile
index 106fd5f..0e5044a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -349,8 +349,9 @@ export KBUILD_BUILTIN KBUILD_CHECKSRC
 
 CFLAGS_USER += -O2 -std=gnu99 -fno-stack-protector -fgnu89-inline
 CXXFLAGS_USER += -O2
+CFLAGS_USER_LIBS += -fPIC -static -fomit-frame-pointer -g
 
-export CFLAGS_USER CXXFLAGS_USER
+export CFLAGS_USER CXXFLAGS_USER CFLAGS_USER_LIBS
 
 # Akaros include stuff (includes custom make targets and user overrides)
 # =========================================================================