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