From 2610a548bbeef7a10172889f8aa41d8bfa797c71 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Tue, 7 Aug 2018 20:43:19 +0200 Subject: [PATCH] Remove the -fPIE and -pie compiler flags. Since we are building a library, these flags shouldn't be used. They appear to cause problems when linking libmeshlink into another shared library. --- configure.ac | 2 -- 1 file changed, 2 deletions(-) diff --git a/configure.ac b/configure.ac index 47656d73..e02f5c37 100644 --- a/configure.ac +++ b/configure.ac @@ -68,9 +68,7 @@ AS_IF([test "x$enable_hardening" != "xno"], AX_CHECK_LINK_FLAG([-Wl,--nxcompat], [LDFLAGS="$LDFLAGS -Wl,--nxcompat"]) ;; *) - AX_CHECK_COMPILE_FLAG([-fPIE], [CPPFLAGS="$CPPFLAGS -fPIE"]) AX_CHECK_COMPILE_FLAG([-fPIC], [CPPFLAGS="$CPPFLAGS -fPIC"]) - AX_CHECK_LINK_FLAG([-pie], [LDFLAGS="$LDFLAGS -pie"]) ;; esac AX_CHECK_LINK_FLAG([-Wl,-z,relro], [LDFLAGS="$LDFLAGS -Wl,-z,relro"]) -- 2.39.2