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