Use -fPIC even on Win32, since libtool reintroduces it no matter what.

This commit is contained in:
Frank Denis 2013-04-24 13:08:25 -07:00
parent 8a3c11968e
commit 91e75fc973

View File

@ -45,16 +45,11 @@ AS_IF([test "$cross_compiling" != no],
AX_CHECK_COMPILE_FLAG([-fvisibility=hidden], AX_CHECK_COMPILE_FLAG([-fvisibility=hidden],
[CFLAGS="$CFLAGS -fvisibility=hidden"]) [CFLAGS="$CFLAGS -fvisibility=hidden"])
case $host_os in AX_CHECK_COMPILE_FLAG([-fPIC], [
cygwin* | mingw* | pw32* | cegcc*) ;;
*)
AX_CHECK_COMPILE_FLAG([-fPIC], [
AX_CHECK_LINK_FLAG([-fPIC], AX_CHECK_LINK_FLAG([-fPIC],
[CFLAGS="$CFLAGS -fPIC"] [CFLAGS="$CFLAGS -fPIC"]
) )
]) ])
;;
esac
AS_IF([test "$enable_pie" != "no"],[ AS_IF([test "$enable_pie" != "no"],[
AX_CHECK_COMPILE_FLAG([-fPIE], [ AX_CHECK_COMPILE_FLAG([-fPIE], [