Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 158067
Collapse All | Expand All

(-)/home/flame/devel/gentoo-x86/sys-devel/libtool/libtool-1.5.22.ebuild (-1 / +21 lines)
Lines 127-137 Link Here
127
127
128
src_compile() {
128
src_compile() {
129
	lt_setup
129
	lt_setup
130
	econf || die
130
	local myconf
131
132
	if [[ ${CATEGORY/cross-/} != ${CATEGORY} ]]; then
133
		local ctarget=${CATEGORY/cross-/}
134
		myconf="--program-prefix=${ctarget}- --disable-ltdl-install --build=${CHOST} --host=${ctarget} --target=${ctarget}"
135
136
		# We won't build any C code, so just ignore these
137
		unset CFLAGS LDFLAGS
138
	fi
139
140
	econf ${myconf} || die
131
	emake || die
141
	emake || die
132
}
142
}
133
143
134
src_install() {
144
src_install() {
145
	# When building for crosscompiling we care only about
146
	# the libtool script (that has the defaults of the cross
147
	# compiler rather than system's
148
	if [[ ${CATEGORY/cross-/} != ${CATEGORY} ]]; then
149
		local ctarget=${CATEGORY/cross-/}
150
		newbin libtool ${ctarget}-libtool
151
152
		return 0
153
	fi
154
135
	make DESTDIR="${D}" install || die
155
	make DESTDIR="${D}" install || die
136
	dodoc AUTHORS ChangeLog* NEWS README THANKS TODO doc/PLATFORMS
156
	dodoc AUTHORS ChangeLog* NEWS README THANKS TODO doc/PLATFORMS
137
157

Return to bug 158067