]> git.meshlink.io Git - meshlink/commitdiff
Remove the -fPIE and -pie compiler flags.
authorGuus Sliepen <guus@meshlink.io>
Tue, 7 Aug 2018 18:43:19 +0000 (20:43 +0200)
committerGuus Sliepen <guus@meshlink.io>
Tue, 7 Aug 2018 18:43:19 +0000 (20:43 +0200)
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

index 47656d7378987cba35eda1d7e0c16c93ad760829..e02f5c37050524fbd9485922be2a62042d926fcf 100644 (file)
@@ -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"])