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

Collapse All | Expand All

(-)busybox-1.12.2.ebuild (-6 / +8 lines)
Lines 101-111 Link Here
101
		Makefile.flags || die
101
		Makefile.flags || die
102
	sed -i '/^#error Aborting compilation./d' applets/applets.c || die
102
	sed -i '/^#error Aborting compilation./d' applets/applets.c || die
103
	use elibc_glibc && sed -i 's:-Wl,--gc-sections::' Makefile
103
	use elibc_glibc && sed -i 's:-Wl,--gc-sections::' Makefile
104
	cat <<-EOF >> Makefile.flags
104
	sed -i \
105
	CROSS_COMPILE := ${CHOST}-
105
		-e "/^CROSS_COMPILE/s:=.*:= ${CHOST}-:" \
106
	HOSTCC := $(tc-getBUILD_CC)
106
		-e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \
107
	SKIP_STRIP = y
107
		Makefile || die
108
	EOF
109
108
110
	# check for a busybox config before making one of our own.
109
	# check for a busybox config before making one of our own.
111
	# if one exist lets return and use it.
110
	# if one exist lets return and use it.
Lines 165-171 Link Here
165
	emake busybox || die "build failed"
164
	emake busybox || die "build failed"
166
	if ! use static && ! use pam ; then
165
	if ! use static && ! use pam ; then
167
		mv busybox_unstripped{,.bak}
166
		mv busybox_unstripped{,.bak}
168
		emake CONFIG_STATIC=y busybox || die "static build failed"
167
		emake \
168
			CONFIG_STATIC=y \
169
			SKIP_STRIP=y \
170
			busybox || die "static build failed"
169
		mv busybox_unstripped bb
171
		mv busybox_unstripped bb
170
		mv busybox_unstripped{.bak,}
172
		mv busybox_unstripped{.bak,}
171
	fi
173
	fi

Return to bug 131316