Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 632670 | Differences between
and this patch

Collapse All | Expand All

(-)a/dev-lisp/sbcl/sbcl-1.4.0.ebuild (-5 / +7 lines)
Lines 107-117 src_prepare() { Link Here
107
107
108
	eapply_user
108
	eapply_user
109
109
110
	# bugs #526194, #620532
110
	# original bugs #526194, #620532
111
	sed -e "s@CFLAGS +=.*\$@CFLAGS = ${CFLAGS} -Wall -Wsign-compare -Wpointer-arith@" \
111
	# this broke no-pie default builds, c.f. bug #632670
112
		-e "s@LINKFLAGS += -g\$@LINKFLAGS = ${LDFLAGS}@" \
112
	# Pass CFLAGS down by appending our value, to let users override
113
		-e "s@LINKFLAGS += -no-pie\$@LINKFLAGS = ${LDFLAGS} -no-pie@" \
113
	# the default values.
114
		-e "s@LINKFLAGS += -nopie\$@LINKFLAGS = ${LDFLAGS} -nopie@" \
114
	# Keep passing LDFLAGS down via the LINKFLAGS variable.
115
	sed -e "s@\(CFLAGS += -g .*\)\$@\1 ${CFLAGS}@" \
116
		-e "s@LINKFLAGS += -g\$@LINKFLAGS += ${LDFLAGS}@" \
115
		-i src/runtime/GNUmakefile || die
117
		-i src/runtime/GNUmakefile || die
116
118
117
	sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
119
	sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \

Return to bug 632670