aboutsummaryrefslogtreecommitdiff
path: root/scripts/crosstool-NG.sh
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2018-05-25 23:57:29 -0700
committerAlexey Neyman <stilor@att.net>2018-06-05 00:16:37 -0700
commit07ec87f14f2bb078235a7db25d4a923e9319f53c (patch)
tree2b1f357525d71bdc1ca609ce1ae69c938e7fd057 /scripts/crosstool-NG.sh
parentec384f2b9fa1337c7bbcd7ed7e972516bd696b3b (diff)
downloadcrosstool-ng-07ec87f14f2bb078235a7db25d4a923e9319f53c.tar.gz
crosstool-ng-07ec87f14f2bb078235a7db25d4a923e9319f53c.tar.bz2
crosstool-ng-07ec87f14f2bb078235a7db25d4a923e9319f53c.zip
Avoid adding arch/cpu/tune flags for target to GCC build
... as it may need to override them for building runtime-selectable code. Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/crosstool-NG.sh')
-rw-r--r--scripts/crosstool-NG.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/crosstool-NG.sh b/scripts/crosstool-NG.sh
index 19b9519b..486f7330 100644
--- a/scripts/crosstool-NG.sh
+++ b/scripts/crosstool-NG.sh
@@ -166,8 +166,8 @@ CT_PREFIX_DIR="$( ${sed} -r -e 's:/+:/:g; s:/*$::;' <<<"${CT_PREFIX_DIR}" )"
# Second kludge: merge user-supplied target CFLAGS with architecture-provided
# target CFLAGS. Do the same for LDFLAGS in case it happens in the future.
# Put user-supplied flags at the end, so that they take precedence.
-CT_TARGET_CFLAGS="${CT_ARCH_TARGET_CFLAGS} ${CT_TARGET_CFLAGS}"
-CT_TARGET_LDFLAGS="${CT_ARCH_TARGET_LDFLAGS} ${CT_TARGET_LDFLAGS}"
+CT_ALL_TARGET_CFLAGS="${CT_ARCH_TARGET_CFLAGS} ${CT_TARGET_CFLAGS}"
+CT_ALL_TARGET_LDFLAGS="${CT_ARCH_TARGET_LDFLAGS} ${CT_TARGET_LDFLAGS}"
# FIXME move to gcc.sh
CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY=( ${CT_ARCH_CC_CORE_EXTRA_CONFIG} "${CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY[@]}" )