From: Diego Elio 'Flameeyes' Pettenò Date: Sun, 7 Dec 2008 15:03:06 +0000 (+0100) Subject: Don't enable PIC code for all compilation. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=01905caa58178302d2bc910893e09eeca81ef320;p=catta Don't enable PIC code for all compilation. libtool will take care of enabling PIC code whenever necessary, users of PIE-based systems, for randomised processes address will have -fPIE anyway. --- diff --git a/configure.ac b/configure.ac index c075a68..4826a60 100644 --- a/configure.ac +++ b/configure.ac @@ -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