Skip to content

Commit

Permalink
Use -fPIC even on Win32, since libtool reintroduces it no matter what.
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Apr 24, 2013
1 parent 8a3c119 commit 91e75fc
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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], [
Expand Down

0 comments on commit 91e75fc

Please sign in to comment.