commit: 6b57a11eede097ad92883e6a6f100e752a2d5740 Author: Chema Alonso Josa <nimiux <AT> gentoo <DOT> org> AuthorDate: Wed Aug 23 20:57:41 2017 +0000 Commit: José María Alonso <nimiux <AT> gentoo <DOT> org> CommitDate: Wed Aug 23 20:57:41 2017 +0000 URL: https://gitweb.gentoo.org/proj/lisp.git/commit/?id=6b57a11e
dev-lisp/sbcl: Fixes user CFLAGS and LDFLAGS substitution Gentoo-Bug: 620532 dev-lisp/sbcl/sbcl-1.3.20.ebuild | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dev-lisp/sbcl/sbcl-1.3.20.ebuild b/dev-lisp/sbcl/sbcl-1.3.20.ebuild index 3665ca25..a6c44f00 100644 --- a/dev-lisp/sbcl/sbcl-1.3.20.ebuild +++ b/dev-lisp/sbcl/sbcl-1.3.20.ebuild @@ -107,9 +107,11 @@ src_prepare() { eapply_user - # bug #526194 - sed -e "s@CFLAGS =.*\$@CFLAGS = ${CFLAGS} -g -Wall -Wsign-compare@" \ - -e "s@LINKFLAGS =.*\$@LINKFLAGS = ${LDFLAGS} -g@" \ + # bugs #526194 and #620532 + sed -e "s@CFLAGS +=.*\$@CFLAGS = ${CFLAGS} -Wall -Wsign-compare -Wpointer-arith@" \ + -e "s@LINKFLAGS += -g\$@LINKFLAGS = ${LDFLAGS}@" \ + -e "s@LINKFLAGS += -no-pie\$@LINKFLAGS = ${LDFLAGS} -no-pie@" \ + -e "s@LINKFLAGS += -nopie\$@LINKFLAGS = ${LDFLAGS} -nopie@" \ -i src/runtime/GNUmakefile || die sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \