summaryrefslogtreecommitdiff
path: root/src/template/linux
diff options
context:
space:
mode:
Diffstat (limited to 'src/template/linux')
-rw-r--r--src/template/linux3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/template/linux b/src/template/linux
index e39290845a..ec3302c4a2 100644
--- a/src/template/linux
+++ b/src/template/linux
@@ -9,6 +9,9 @@ fi
# This is also required for ppoll(2), and perhaps other things
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
+# Extra CFLAGS for code that will go into a shared library
+CFLAGS_SL="-fPIC"
+
# If --enable-profiling is specified, we need -DLINUX_PROFILE
PLATFORM_PROFILE_FLAGS="-DLINUX_PROFILE"