1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-23 20:15:19 -07:00

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],
[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], [