diff --git a/configure.ac b/configure.ac index a104c322..db871c18 100644 --- a/configure.ac +++ b/configure.ac @@ -159,16 +159,10 @@ AS_CASE([$host_os], [cygwin*|mingw*|msys|pw32*|cegcc*], [ ], [ AS_IF([test "$enable_pie" != "no"],[ AX_CHECK_COMPILE_FLAG([-fPIE], [ - AX_CHECK_LINK_FLAG([-fPIE], [ - AX_CHECK_LINK_FLAG([-Wl,-pie], [ - CFLAGS="$CFLAGS -fPIE" - LDFLAGS="$LDFLAGS -Wl,-pie" - ], [ - AX_CHECK_LINK_FLAG([-pie], [ - CFLAGS="$CFLAGS -fPIE" - LDFLAGS="$LDFLAGS -pie" - ]) - ]) + AX_CHECK_LINK_FLAG([-fPIE], + [AX_CHECK_LINK_FLAG([-pie], + [CFLAGS="$CFLAGS -fPIE" + LDFLAGS="$LDFLAGS -pie"]) ]) ]) ])