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) 5root=/usr/pkg 6target=mipsel--netbsd 7 8EXTERNAL_TOOLCHAIN=${root}; export EXTERNAL_TOOLCHAIN 9LD=${root}/bin/${target}-ld; export LD 10CC=${root}/bin/${target}-gcc; export CC 11CXX=${root}/bin/${target}-g++; export CXX 12AS=${root}/bin/${target}-as; export AS 13CPP=${root}/bin/${target}-cpp; export CPP 14RANLIB=${root}/bin/${target}-ranlib; export RANLIB 15AR=${root}/bin/${target}-ar; export AR 16NM=${root}/bin/${target}-nm; export NM 17SIZE=${root}/bin/${target}-size; export SIZE 18STRIP=${root}/bin/${target}-strip; export STRIP 19OBJCOPY=${root}/bin/${target}-objcopy; export OBJCOPY 20 21MAKE="make"; export MAKE 22 23exec $MAKE "$@" 24