mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-24 04:25:10 -07:00
Use -fPIC even on Win32, since libtool reintroduces it no matter what.
This commit is contained in:
parent
8a3c11968e
commit
91e75fc973
15
configure.ac
15
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], [
|
||||
|
Loading…
Reference in New Issue
Block a user