dev-lisp/sbcl: Removes -no-pie GCC option
authorChema Alonso Josa <nimiux@gentoo.org>
Thu, 9 Feb 2017 15:01:13 +0000 (16:01 +0100)
committerChema Alonso Josa <nimiux@gentoo.org>
Thu, 9 Feb 2017 15:01:41 +0000 (16:01 +0100)
Fixes bug #608678

Package-Manager: portage-2.3.3

dev-lisp/sbcl/files/sbcl-1.3.14-config.patch [new file with mode: 0644]
dev-lisp/sbcl/sbcl-1.3.14.ebuild

diff --git a/dev-lisp/sbcl/files/sbcl-1.3.14-config.patch b/dev-lisp/sbcl/files/sbcl-1.3.14-config.patch
new file mode 100644 (file)
index 0000000..c12700d
--- /dev/null
@@ -0,0 +1,22 @@
+diff -Nuar a/src/runtime/GNUmakefile b/src/runtime/GNUmakefile
+--- a/src/runtime/GNUmakefile  2017-01-22 20:43:20.000000000 +0100
++++ b/src/runtime/GNUmakefile  2017-02-09 15:42:22.340029401 +0100
+@@ -39,18 +39,6 @@
+ # OS_SRC, OS_LIBS, OS_CLEAN_FILES
+ include Config
+-# Disable PIE when possible
+-ifneq ($(shell $(CC) -dumpspecs 2>/dev/null | grep -e no-pie),)
+-CFLAGS += -fno-pie
+-LINKFLAGS += -no-pie
+-LDFLAGS += -no-pie
+-endif
+-ifneq ($(shell $(CC) -dumpspecs 2>/dev/null | grep -e -nopie),)
+-CFLAGS += -fno-pie
+-LINKFLAGS += -nopie
+-LDFLAGS += -nopie
+-endif
+-
+ COMMON_SRC = alloc.c backtrace.c breakpoint.c coreparse.c dynbind.c     \
+       funcall.c gc-common.c globals.c interr.c interrupt.c            \
+       largefile.c monitor.c os-common.c parse.c print.c purify.c      \
index f737a35455933a3b02dec9fd37aa7772bc9ab150..47120773925a2d844c7a0e4a34ae71b108cccaaf 100644 (file)
@@ -101,6 +101,8 @@ src_prepare() {
        eapply "${FILESDIR}"/bsd-sockets-test-1.3.12.patch
        # bugs #560276, #561018
        eapply "${FILESDIR}"/sb-posix-test-1.2.15.patch
+       # bug #599902, #607302
+       eapply "${FILESDIR}"/${PN}-1.3.14-config.patch
 
        eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch
        eapply "${FILESDIR}"/${PN}-1.2.13-verbose-build.patch