From: Tor Lillqvist Date: Wed, 21 Oct 2009 18:49:50 +0000 (+0300) Subject: Don't use -fPIC and -fPIE on Windows X-Git-Tag: dbus-1.3.1~160 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eab064cfc4f0dbb41c9d54fbfa7e6537d2e7dc05;p=platform%2Fupstream%2Fdbus.git Don't use -fPIC and -fPIE on Windows The MinGW compiler recognizes them but emits a warning "-fPIC ignored for target (all code is position independent)" --- diff --git a/configure.in b/configure.in index 2c74f61..30b7252 100644 --- a/configure.in +++ b/configure.in @@ -1093,7 +1093,7 @@ if test "x$GCC" = "xyes"; then case " $CFLAGS " in *[\ \ ]-fPIC[\ \ ]*) ;; - *) if cc_supports_flag -fPIC; then + *) if test x$dbus_win = xno && cc_supports_flag -fPIC; then PIC_CFLAGS="-fPIC" if ld_supports_flag -z,relro; then PIC_LDFLAGS="-Wl,-z,relro" @@ -1104,7 +1104,7 @@ if test "x$GCC" = "xyes"; then case " $CFLAGS " in *[\ \ ]-fPIE[\ \ ]*) ;; - *) if cc_supports_flag -fPIE; then + *) if test x$dbus_win = xno && cc_supports_flag -fPIE; then PIE_CFLAGS="-fPIE" if ld_supports_flag -z,relro; then PIE_LDFLAGS="-pie -Wl,-z,relro"