A build-specific cc is needed because cc includes the lib path
in the binary for baking. After this change it's possible to use
config variables alone to build at least a simple unikernel for
testing (i.e. setting PATH to match the build dest is not required).
XXX: value is hardcoded to gcc, but that's not a practical problem as
long as support only gcc.
makeconfig ${RROBJ}/config.mk ''
makeconfig ${RROBJ}/config.sh \"
+ # XXX: gcc is hardcoded
cat > ${RROBJ}/config << EOF
export RUMPRUN_MKCONF="${RROBJ}/config.mk"
export RUMPRUN_SHCONF="${RROBJ}/config.sh"
export RUMPRUN_BAKE="${RRDEST}/bin/rumprun-bake"
+export RUMPRUN_CC="${RRDEST}/bin/${TOOLTUPLE}-gcc"
export RUMPRUN="${RRDEST}/bin/rumprun"
export RUMPSTOP="${RRDEST}/bin/rumpstop"
EOF