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

(-)a/newlib-3.3.0.ebuild (+9 lines)
Lines 140-145 Link Here
140
		mkdir -p "${D}/usr/${CTARGET}/include/newlib-nano" || die
140
		mkdir -p "${D}/usr/${CTARGET}/include/newlib-nano" || die
141
		mv "${NEWLIBNANOTMPINSTALL}/usr/${CTARGET}/include/newlib.h" \
141
		mv "${NEWLIBNANOTMPINSTALL}/usr/${CTARGET}/include/newlib.h" \
142
			"${D}/usr/${CTARGET}/include/newlib-nano/newlib.h" || die
142
			"${D}/usr/${CTARGET}/include/newlib-nano/newlib.h" || die
143
144
		# Edit nano spec files, omitting the 'replace' libstdc++ and libsupc++
145
		# directives.
146
		local nanospecfiles=""
147
		nanospecfiles=$(find "${D}" -name "nano.specs" -print)
148
		for f in ${nanospecfiles}; do
149
			sed -i 's/\%:replace-outfile(-lstdc++[^)]*)//' ${f} || die
150
			sed -i 's/\%:replace-outfile(-lsupc++[^)]*)//' ${f} || die
151
		done
143
	fi
152
	fi
144
153
145
	# minor hack to keep things clean
154
	# minor hack to keep things clean

Return to bug 723756