1 1.1 uch #!/bin/sh 2 1.1 uch 3 1.5 martin # This assumes the compiler comes from pkgsrc/cross/gcc-mips-current 4 1.5 martin # (as R5900 support is not available on other branches of gcc yet) 5 1.5 martin root=/usr/pkg 6 1.5 martin target=mips--netbsdelf 7 1.1 uch 8 1.5 martin TOOLCHAIN_MISSING=yes; export TOOLCHAIN_MISSING 9 1.5 martin 10 1.5 martin LD=${root}/bin/${target}-ld; export LD 11 1.1 uch CC=${root}/bin/${target}-gcc; export CC 12 1.1 uch CXX=${root}/bin/${target}-g++; export CXX 13 1.1 uch AS=${root}/bin/${target}-as; export AS 14 1.1 uch CPP=${root}/bin/${target}-cpp; export CPP 15 1.1 uch RANLIB=${root}/bin/${target}-ranlib; export RANLIB 16 1.1 uch AR=${root}/bin/${target}-ar; export AR 17 1.1 uch NM=${root}/bin/${target}-nm; export NM 18 1.1 uch SIZE=${root}/bin/${target}-size; export SIZE 19 1.1 uch STRIP=${root}/bin/${target}-strip; export STRIP 20 1.1 uch 21 1.1 uch MAKE="make"; export MAKE 22 1.1 uch 23 1.1 uch set -x 24 1.1 uch exec $MAKE "$@" 25