]> git.meshlink.io Git - catta/commitdiff
Don't enable PIC code for all compilation.
authorDiego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>
Sun, 7 Dec 2008 15:03:06 +0000 (16:03 +0100)
committerDiego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>
Sun, 7 Dec 2008 15:03:06 +0000 (16:03 +0100)
libtool will take care of enabling PIC code whenever necessary, users
of PIE-based systems, for randomised processes address will have -fPIE
anyway.

configure.ac

index c075a6819464d8cf8ebb66c1a5c721e7748a6015..4826a60756a4300aa3ef9f0c251ce775d477bd11 100644 (file)
@@ -299,7 +299,7 @@ test_gcc_flag() {
 # If using GCC specify some additional parameters
 if test "x$GCC" = "xyes" ; then
 
-    DESIRED_FLAGS="-Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Winline -fPIC"
+    DESIRED_FLAGS="-Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Winline"
 
     if test "x$HAVE_NETLINK" = "xyes" ; then
         # Test whether rtnetlink.h can be included when compiled with -std=c99