From e698deff5c796967dd628d79aa27e8d7a5706fa8 Mon Sep 17 00:00:00 2001 From: Antti Kantee Date: Thu, 28 Jan 2016 13:32:44 +0000 Subject: [PATCH] Also add $RUMPRUN_CC to config. 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build-rr.sh b/build-rr.sh index c24180a..44d8e69 100755 --- a/build-rr.sh +++ b/build-rr.sh @@ -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 -- 2.39.5