dev-lisp/clozurecl: fix compilation on x86 with 17.0 profile
authorAndrey Grozin <grozin@gentoo.org>
Sun, 9 Dec 2018 13:35:59 +0000 (20:35 +0700)
committerAndrey Grozin <grozin@gentoo.org>
Sun, 9 Dec 2018 13:35:59 +0000 (20:35 +0700)
Suggested-by: Sergei Trofimovich <slyfox@gentoo.org>
Closes: https://bugs.gentoo.org/672454
Signed-off-by: Andrey Grozin <grozin@gentoo.org>
Package-Manager: Portage-2.3.41, Repoman-2.3.9

dev-lisp/clozurecl/clozurecl-1.11.5.ebuild
dev-lisp/clozurecl/files/clozurecl-1.11.5-no-pie-32.patch [new file with mode: 0644]

index f67f277c60afef4c8022431ee156aec7a6c0776b..101770fa8478cf2339903289d147347928893356 100644 (file)
@@ -31,6 +31,8 @@ DEPEND="${RDEPEND}"
 S="${WORKDIR}"/${MY_PN}
 ENVD="${T}/50ccl"
 
+PATCHES=( "${FILESDIR}"/${P}-no-pie-32.patch )
+
 src_prepare() {
        default
        cp "${EPREFIX}/usr/share/common-lisp/source/asdf/build/asdf.lisp" tools/ || die
diff --git a/dev-lisp/clozurecl/files/clozurecl-1.11.5-no-pie-32.patch b/dev-lisp/clozurecl/files/clozurecl-1.11.5-no-pie-32.patch
new file mode 100644 (file)
index 0000000..2396c7a
--- /dev/null
@@ -0,0 +1,7 @@
+--- a/lisp-kernel/linuxx8632/Makefile
++++ b/lisp-kernel/linuxx8632/Makefile
+@@ -76,3 +76,3 @@ USE_LINK_SCRIPT = # -T $(LINK_SCRIPT)
+ ../../lx86cl: $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) Makefile  $(LINK_SCRIPT)
+-      $(CC)  -m32 $(CDEBUG)  -Wl,--export-dynamic $(HASH_STYLE) -o $@ $(USE_LINK_SCRIPT) $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) -Wl,--no-as-needed $(OSLIBS)
++      $(CC)  -m32 $(CDEBUG)  -Wl,--export-dynamic $(HASH_STYLE) -no-pie -o $@ $(USE_LINK_SCRIPT) $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) -Wl,--no-as-needed $(OSLIBS)
+