From: Guus Sliepen Date: Tue, 7 Aug 2018 18:43:19 +0000 (+0200) Subject: Remove the -fPIE and -pie compiler flags. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=2610a548bbeef7a10172889f8aa41d8bfa797c71;p=meshlink 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. --- 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"])