gcc: Slight builder cleanup
This commit is contained in:
@@ -109,13 +109,11 @@ if test "$noSysDirs" = "1"; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# CFLAGS_FOR_TARGET are needed for the libstdc++ configure script to find
|
# CFLAGS_FOR_TARGET are needed for the libstdc++ configure script to find
|
||||||
# the startfiles.
|
# the startfiles.
|
||||||
# FLAGS_FOR_TARGET are needed for the target libraries to receive the -Bxxx
|
# FLAGS_FOR_TARGET are needed for the target libraries to receive the -Bxxx
|
||||||
# for the startfiles.
|
# for the startfiles.
|
||||||
makeFlagsArray=( \
|
makeFlagsArray+=( \
|
||||||
"${makeFlagsArray[@]}" \
|
|
||||||
NATIVE_SYSTEM_HEADER_DIR="$NIX_FIXINC_DUMMY" \
|
NATIVE_SYSTEM_HEADER_DIR="$NIX_FIXINC_DUMMY" \
|
||||||
SYSTEM_HEADER_DIR="$NIX_FIXINC_DUMMY" \
|
SYSTEM_HEADER_DIR="$NIX_FIXINC_DUMMY" \
|
||||||
CFLAGS_FOR_BUILD="$EXTRA_FLAGS $EXTRA_LDFLAGS" \
|
CFLAGS_FOR_BUILD="$EXTRA_FLAGS $EXTRA_LDFLAGS" \
|
||||||
@@ -128,8 +126,7 @@ if test "$noSysDirs" = "1"; then
|
|||||||
)
|
)
|
||||||
|
|
||||||
if test -z "$targetConfig"; then
|
if test -z "$targetConfig"; then
|
||||||
makeFlagsArray=( \
|
makeFlagsArray+=( \
|
||||||
"${makeFlagsArray[@]}" \
|
|
||||||
BOOT_CFLAGS="$EXTRA_FLAGS $EXTRA_LDFLAGS" \
|
BOOT_CFLAGS="$EXTRA_FLAGS $EXTRA_LDFLAGS" \
|
||||||
BOOT_LDFLAGS="$EXTRA_TARGET_CFLAGS $EXTRA_TARGET_LDFLAGS" \
|
BOOT_LDFLAGS="$EXTRA_TARGET_CFLAGS $EXTRA_TARGET_LDFLAGS" \
|
||||||
)
|
)
|
||||||
@@ -138,13 +135,11 @@ if test "$noSysDirs" = "1"; then
|
|||||||
if test -n "$targetConfig" -a "$crossStageStatic" == 1; then
|
if test -n "$targetConfig" -a "$crossStageStatic" == 1; then
|
||||||
# We don't want the gcc build to assume there will be a libc providing
|
# We don't want the gcc build to assume there will be a libc providing
|
||||||
# limits.h in this stagae
|
# limits.h in this stagae
|
||||||
makeFlagsArray=( \
|
makeFlagsArray+=( \
|
||||||
"${makeFlagsArray[@]}" \
|
|
||||||
LIMITS_H_TEST=false \
|
LIMITS_H_TEST=false \
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
makeFlagsArray=( \
|
makeFlagsArray+=( \
|
||||||
"${makeFlagsArray[@]}" \
|
|
||||||
LIMITS_H_TEST=true \
|
LIMITS_H_TEST=true \
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
@@ -163,6 +158,7 @@ preConfigure() {
|
|||||||
# Patch to get armvt5el working:
|
# Patch to get armvt5el working:
|
||||||
sed -i -e 's/ arm)/ arm*)/' newlib/configure.host
|
sed -i -e 's/ arm)/ arm*)/' newlib/configure.host
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Bug - they packaged zlib
|
# Bug - they packaged zlib
|
||||||
if test -d "zlib"; then
|
if test -d "zlib"; then
|
||||||
# This breaks the build without-headers, which should build only
|
# This breaks the build without-headers, which should build only
|
||||||
@@ -189,8 +185,8 @@ preConfigure() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Eval the preConfigure script from nix expression.
|
# Eval the preConfigure script from nix expression.
|
||||||
eval $providedPreConfigure;
|
eval "$providedPreConfigure"
|
||||||
env;
|
|
||||||
# Perform the build in a different directory.
|
# Perform the build in a different directory.
|
||||||
mkdir ../build
|
mkdir ../build
|
||||||
cd ../build
|
cd ../build
|
||||||
|
|||||||
Reference in New Issue
Block a user