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

Collapse All | Expand All

(-)musl-1.1.7.ebuild (-13 / +9 lines)
Lines 57-65 Link Here
57
	tc-getCC ${CTARGET}
57
	tc-getCC ${CTARGET}
58
	just_headers && export CC=true
58
	just_headers && export CC=true
59
59
60
	local sysroot
61
	is_crosscompile && sysroot=/usr/${CTARGET}
60
	./configure \
62
	./configure \
61
		--target="${CTARGET}" \
63
		--target="${CTARGET}" \
62
		--prefix="/usr" \
64
		--prefix="${sysroot}"/usr \
63
		--disable-gcc-wrapper
65
		--disable-gcc-wrapper
64
}
66
}
65
67
Lines 71-93 Link Here
71
}
73
}
72
74
73
src_install() {
75
src_install() {
74
	local sysroot=${D}
75
	is_crosscompile && sysroot+="/usr/${CTARGET}"
76
77
	local target="install"
76
	local target="install"
78
	just_headers && target="install-headers"
77
	just_headers && target="install-headers"
79
	emake DESTDIR="${sysroot}" ${target} || die
78
	emake DESTDIR="${D}" ${target} || die
79
	just_headers && return 0
80
80
81
	# Make sure we install the sys-include symlink so that when
82
	# we build a 2nd stage cross-compiler, gcc finds the target
83
	# system headers correctly.  See gcc/doc/gccinstall.info
84
	if is_crosscompile ; then
85
		dosym usr/include /usr/${CTARGET}/sys-include
86
	fi
87
81
88
	# musl provides ldd via a sym link to its ld.so
82
	# musl provides ldd via a sym link to its ld.so
89
	local ldso=$(basename ${D}/lib/ld-musl-*)
83
	local ldso=$(basename "${D}"/lib/ld-musl-*)
90
	dosym /lib/${ldso} /usr/bin/ldd
84
	local sysroot=/
85
	is_crosscompile && sysroot=/usr/${CTARGET}
86
	dosym /lib/${ldso} ${sysroot}/usr/bin/ldd
91
}
87
}
92
88
93
pkg_postinst() {
89
pkg_postinst() {

Return to bug 544128