From 91e75fc973da45dda4e7deb855269fb2268e43a0 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 24 Apr 2013 13:08:25 -0700 Subject: [PATCH] Use -fPIC even on Win32, since libtool reintroduces it no matter what. --- configure.ac | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/configure.ac b/configure.ac index 22c48984..c8d2af1c 100644 --- a/configure.ac +++ b/configure.ac @@ -45,16 +45,11 @@ AS_IF([test "$cross_compiling" != no], AX_CHECK_COMPILE_FLAG([-fvisibility=hidden], [CFLAGS="$CFLAGS -fvisibility=hidden"]) -case $host_os in - cygwin* | mingw* | pw32* | cegcc*) ;; - *) - AX_CHECK_COMPILE_FLAG([-fPIC], [ - AX_CHECK_LINK_FLAG([-fPIC], - [CFLAGS="$CFLAGS -fPIC"] - ) - ]) - ;; -esac +AX_CHECK_COMPILE_FLAG([-fPIC], [ + AX_CHECK_LINK_FLAG([-fPIC], + [CFLAGS="$CFLAGS -fPIC"] + ) +]) AS_IF([test "$enable_pie" != "no"],[ AX_CHECK_COMPILE_FLAG([-fPIE], [