From 2c15c81ba539abcd398c3b41b7adf5fbee9e36f1 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 15 Jan 2015 16:21:09 +0100 Subject: [PATCH] Revert 17932c782e5900ac8cee42fe43e3455db85351e0 It broke compilation on OpenBSD. --- configure.ac | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) 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"]) ]) ]) ])