commit:     01277b43fb99ba50bf59849c19305ba94783cfe2
Author:     Andrey Grozin <grozin <AT> gentoo <DOT> org>
AuthorDate: Sun Dec  9 13:35:59 2018 +0000
Commit:     Andrey Grozin <grozin <AT> gentoo <DOT> org>
CommitDate: Sun Dec  9 13:35:59 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01277b43

dev-lisp/clozurecl: fix compilation on x86 with 17.0 profile

Suggested-by:  Sergei Trofimovich <slyfox <AT> gentoo.org>
Closes: https://bugs.gentoo.org/672454
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
Package-Manager: Portage-2.3.41, Repoman-2.3.9

 dev-lisp/clozurecl/clozurecl-1.11.5.ebuild                | 2 ++
 dev-lisp/clozurecl/files/clozurecl-1.11.5-no-pie-32.patch | 7 +++++++
 2 files changed, 9 insertions(+)

diff --git a/dev-lisp/clozurecl/clozurecl-1.11.5.ebuild 
b/dev-lisp/clozurecl/clozurecl-1.11.5.ebuild
index f67f277c60a..101770fa847 100644
--- a/dev-lisp/clozurecl/clozurecl-1.11.5.ebuild
+++ b/dev-lisp/clozurecl/clozurecl-1.11.5.ebuild
@@ -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
index 00000000000..2396c7a316c
--- /dev/null
+++ b/dev-lisp/clozurecl/files/clozurecl-1.11.5-no-pie-32.patch
@@ -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)
+ 

Reply via email to