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 (-7 / +13 lines)
Lines 107-117 src_prepare() { Link Here
107
107
108
	eapply_user
108
	eapply_user
109
109
110
	# bugs #526194, #620532
110
	# Make sure the *FLAGS variables are sane.
111
	sed -e "s@CFLAGS +=.*\$@CFLAGS = ${CFLAGS} -Wall -Wsign-compare -Wpointer-arith@" \
111
	# sbcl needs symbols in resulting binaries, so building with the -s linker flag will fail.
112
		-e "s@LINKFLAGS += -g\$@LINKFLAGS = ${LDFLAGS}@" \
112
	strip-unsupported-flags
113
		-e "s@LINKFLAGS += -no-pie\$@LINKFLAGS = ${LDFLAGS} -no-pie@" \
113
	filter-flags -fomit-frame-pointer -Wl,-s
114
		-e "s@LINKFLAGS += -nopie\$@LINKFLAGS = ${LDFLAGS} -nopie@" \
114
	filter-ldflags -s
115
116
	# original bugs #526194, #620532
117
	# this broke no-pie default builds, c.f. bug #632670
118
	# Pass CFLAGS down by appending our value, to let users override
119
	# the default values.
120
	# Keep passing LDFLAGS down via the LINKFLAGS variable.
121
	sed -e "s@\(CFLAGS += -g .*\)\$@\1 ${CFLAGS}@" \
122
		-e "s@LINKFLAGS += -g\$@LINKFLAGS += ${LDFLAGS}@" \
115
		-i src/runtime/GNUmakefile || die
123
		-i src/runtime/GNUmakefile || die
116
124
117
	sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
125
	sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
Lines 148-155 src_configure() { Link Here
148
src_compile() {
156
src_compile() {
149
	local bindir="${WORKDIR}"/sbcl-binary
157
	local bindir="${WORKDIR}"/sbcl-binary
150
158
151
	strip-unsupported-flags ; filter-flags -fomit-frame-pointer
152
153
	if use pax_kernel ; then
159
	if use pax_kernel ; then
154
		# To disable PaX on hardened systems
160
		# To disable PaX on hardened systems
155
		pax-mark -mr "${bindir}"/src/runtime/sbcl
161
		pax-mark -mr "${bindir}"/src/runtime/sbcl

Return to bug 632670