On Having Built Linux for a Small System


Explanation: Config/host-binutils/v2.16.1.mak

${EXTTEMP}/binutils-htc/.configured:
	${MAKE} extract LIST="$(strip ${SOURCES})"
	(	cd ${EXTTEMP}/binutils-${VERSION} || exit 1 ;\
		for PF in ../binutils-${VERSION}*patch ; do \
			cat $${PF} | patch -Np1 -i - ;\
		done \
	) || exit 1
	(	mkdir -p ${EXTTEMP}/binutils-htc || exit 1 ;\
		cd ${EXTTEMP}/binutils-htc || exit 1 ;\
	  	CC=${NATIVE_GCC} \
	    	  CFLAGS=-O2 \
			../${EXTPATH}/configure -v \
			  --prefix=${HTC_ROOT}/usr \
			  --host=$(shell echo ${NATIVE_SPEC} | sed 's/-gnulibc1//') \
			  --target=$(shell echo ${NATIVE_SPEC} | sed 's/-gnulibc1//') \
			  --program-prefix=${NATIVE_SPEC}- \
			  --with-sysroot=/ \
			  --with-lib-path=/lib:/usr/lib \
			  --enable-shared \
			  --disable-largefile --disable-nls \
			  || exit 1 \
	)	|| exit 1
	touch ${EXTTEMP}/binutils-htc/.configured