Skip to content

Commit 91e75fc

Browse files
committed
Use -fPIC even on Win32, since libtool reintroduces it no matter what.
1 parent 8a3c119 commit 91e75fc

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

configure.ac

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,11 @@ AS_IF([test "$cross_compiling" != no],
4545
AX_CHECK_COMPILE_FLAG([-fvisibility=hidden],
4646
[CFLAGS="$CFLAGS -fvisibility=hidden"])
4747

48-
case $host_os in
49-
cygwin* | mingw* | pw32* | cegcc*) ;;
50-
*)
51-
AX_CHECK_COMPILE_FLAG([-fPIC], [
52-
AX_CHECK_LINK_FLAG([-fPIC],
53-
[CFLAGS="$CFLAGS -fPIC"]
54-
)
55-
])
56-
;;
57-
esac
48+
AX_CHECK_COMPILE_FLAG([-fPIC], [
49+
AX_CHECK_LINK_FLAG([-fPIC],
50+
[CFLAGS="$CFLAGS -fPIC"]
51+
)
52+
])
5853

5954
AS_IF([test "$enable_pie" != "no"],[
6055
AX_CHECK_COMPILE_FLAG([-fPIE], [

0 commit comments

Comments
 (0)