dev-lang/gprolog: disable PIE as gplc generates native ASM
authorKeri Harris <keri@gentoo.org>
Mon, 3 Sep 2018 11:36:17 +0000 (13:36 +0200)
committerKeri Harris <keri@gentoo.org>
Mon, 3 Sep 2018 11:36:33 +0000 (13:36 +0200)
Package-Manager: Portage-2.3.40, Repoman-2.3.9

dev-lang/gprolog/gprolog-1.4.5.ebuild

index 55a9c9558bba253b64547c38bdc7957e7ec8e846..7e7d7363ac9c1d703d2e6ba28cd4a43d98e5c5a8 100644 (file)
@@ -34,6 +34,11 @@ src_configure() {
        append-flags -fno-strict-aliasing
        use debug && append-flags -DDEBUG
 
+       if tc-enables-pie; then
+               # gplc generates its own native ASM; disable PIE
+               append-ldflags -no-pie
+       fi
+
        cd "${S}"/src
        econf \
                CFLAGS_MACHINE="${CFLAGS_MACHINE}" \