]> xenbits.xensource.com Git - osstest/rumprun.git/commitdiff
genfs tool: remember to use CFLAGS
authorAntti Kantee <pooka@iki.fi>
Thu, 4 Feb 2016 01:09:40 +0000 (01:09 +0000)
committerAntti Kantee <pooka@iki.fi>
Thu, 4 Feb 2016 01:36:32 +0000 (01:36 +0000)
app-tools/genfs.in

index 345ec550b5c97bed27ad9634cc88aa11e51f2169..644ecca4601d92e6743d3e944c154a7697d6bf84 100644 (file)
@@ -91,8 +91,8 @@ makeelfdata ()
        DSRCS=
        for f in ${FILES}; do
                setfilevars ${f}
-               ${RUMPRUN_GENFS_CC} -Wl,-r,-b,binary -nostdlib          \
-                   -o ${TMPDIR}/d${fn}.elf ${f} -nostdlib
+               ${RUMPRUN_GENFS_CC} ${RUMPRUN_GENFS_CFLAGS} -nostdlib   \
+                   -Wl,-r,-b,binary -o ${TMPDIR}/d${fn}.elf ${f}
                ${RUMPRUN_GENFS_OBJCOPY}                                \
                    --redefine-sym ${bin}_start=${rf}_start             \
                    --redefine-sym ${bin}_size=${rf}_size               \
@@ -142,7 +142,7 @@ makeelfdata
 printtail
 exec 1>&3 3>&-
 
-${RUMPRUN_GENFS_CC} -nostdlib -Wl,-r -I${RUMPRUN_GENFS_INCDIR} \
-    -o ${OUTFILE} ${DSRCS} ${TMPDIR}/constr.c
+${RUMPRUN_GENFS_CC} ${RUMPRUN_GENFS_CFLAGS} -I${RUMPRUN_GENFS_INCDIR} \
+    -nostdlib -Wl,-r -o ${OUTFILE} ${DSRCS} ${TMPDIR}/constr.c
 
 exit 0