ports

zandra's ports tree
git clone git://zandra.org/ports
Log | Files | Refs | README | LICENSE

binutils.mk (845B)


      1 INSTALL_BIN = binutils/addr2line binutils/ar binutils/cxxfilt binutils/elfedit binutils/nm-new binutils/objcopy binutils/objdump binutils/ranlib binutils/readelf binutils/size binutils/strings binutils/strip-new binutils/sysinfo gas/as-new ld/ld-new
      2 TARG = $INSTALL_BIN
      3 
      4 <$mkbuild/mk.common-noinst
      5 
      6 $INSTALL_BIN:QV:
      7 	./configure \
      8 		--prefix="$PREFIX" \
      9 		--disable-multilib \
     10 		--disable-nls \
     11 		--disable-gold \
     12 		--disable-werror \
     13 		--build=${TOOLCHAIN_TRIPLET} \
     14 		--target=${TOOLCHAIN_TRIPLET}
     15 	make -j$nprocs
     16 	cd binutils
     17 	rm bfdtest1 bfdtest2 ar addr2line cxxfilt elfedit nm-new \
     18 		objcopy objdump ranlib readelf size strings strip-new
     19 	make LDFLAGS="-all-static" -j$nprocs
     20 	cd ../gas
     21 	rm as-new
     22 	make LDFLAGS="-all-static" -j$nprocs
     23 	cd ../ld
     24 	rm ld-new
     25 	make LDFLAGS="-all-static" -j$nprocs
     26 
     27 install:QV:
     28 	make DESTDIR="$ROOT" install