]> xenbits.xensource.com Git - osstest/rumprun.git/commitdiff
Also add $RUMPRUN_CC to config.
authorAntti Kantee <pooka@iki.fi>
Thu, 28 Jan 2016 13:32:44 +0000 (13:32 +0000)
committerAntti Kantee <pooka@iki.fi>
Thu, 28 Jan 2016 13:32:44 +0000 (13:32 +0000)
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.

build-rr.sh

index c24180a7ed5838c628b0ab29d9d17ca2d46d7b05..44d8e691eef05167029dde2034d8d0107fa6cd41 100755 (executable)
@@ -334,10 +334,12 @@ buildrump ()
 
        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