Commit e46f4108 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

contrib: Make sure we can override default CC and CFLAGS from bootstrap.

parent ca3e9173
...@@ -143,12 +143,12 @@ rm -f "${distro_mak}" ...@@ -143,12 +143,12 @@ rm -f "${distro_mak}"
} > "${distro_mak}" } > "${distro_mak}"
if test "$TARGET" != "$BUILD"; then if test "$TARGET" != "$BUILD"; then
CC="${TARGET}-gcc" test -z "$CC" && CC="${TARGET}-gcc"
CXX="${TARGET}-g++" test -z "$CXX" && CXX="${TARGET}-g++"
LD="${TARGET}-ld" test -z "$LD" && LD="${TARGET}-ld"
RANLIB="${TARGET}-ranlib" test -z "$RANLIB"&& RANLIB="${TARGET}-ranlib"
AR="${TARGET}-ar" test -z "$AR" && AR="${TARGET}-ar"
STRIP="${TARGET}-strip" test -z "$STRIP" && STRIP="${TARGET}-strip"
fi fi
case $TARGET in case $TARGET in
...@@ -356,6 +356,12 @@ test -z "${DISTRO}" && DISTRO=unix ...@@ -356,6 +356,12 @@ test -z "${DISTRO}" && DISTRO=unix
cat src/Distributions/"${DISTRO}".mak >> "${distro_mak}" cat src/Distributions/"${DISTRO}".mak >> "${distro_mak}"
# Save passed flags
EXTRA_CFLAGS+=" $CFLAGS"
EXTRA_LDFLAGS+=" $LDFLAGS"
EXTRA_CPPFLAGS+=" $CPPFLAGS"
EXTRA_CXXFLAGS+=" $CXXFLAGS"
add_makefile_cfg "BUILD = $BUILD" add_makefile_cfg "BUILD = $BUILD"
add_makefile_cfg "HOST = $TARGET" add_makefile_cfg "HOST = $TARGET"
add_makefile_cfg "SRCDIR = `pwd`" add_makefile_cfg "SRCDIR = `pwd`"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment