summaryrefslogtreecommitdiff
path: root/scripts/crosstool-NG.sh.in
diff options
context:
space:
mode:
authorMichael Hope <michael.hope@linaro.org>2012-11-13 15:06:18 (GMT)
committerMichael Hope <michael.hope@linaro.org>2012-11-13 15:06:18 (GMT)
commit79a9f857e2fe6df6be889963dd504b84b1a3ea1a (patch)
treecfd0d3b56cdc3db43e40b831001306f988160900 /scripts/crosstool-NG.sh.in
parentda76ef4f7165facf7f82cf7cb76c99059cd5f6b0 (diff)
scripts: set default CFLAGS to optimise.
The extra CFLAGS override the product defaults, causing the product to be built without optimisation or debug. Be explicit and add these in. Reported-by: Johannes Stezenbach <js@sig21.net> Signed-off-by: Michael Hope <michael.hope@linaro.org> Message-Id: <CANLjY-=3Gbio6nzUPhhevDHV7cUN=6Vigooe9nSf-RnGCqnjog@mail.gmail.com> Patchwork-Id: 198808
Diffstat (limited to 'scripts/crosstool-NG.sh.in')
-rw-r--r--scripts/crosstool-NG.sh.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in
index a7a8015..a393cee 100644
--- a/scripts/crosstool-NG.sh.in
+++ b/scripts/crosstool-NG.sh.in
@@ -494,7 +494,9 @@ if [ -z "${CT_RESTART}" ]; then
fi
# Help gcc
- CT_CFLAGS_FOR_HOST=
+ # Explicitly optimise, else the lines below will overide the
+ # package's default optimisation flags
+ CT_CFLAGS_FOR_HOST="-O2 -g"
[ "${CT_USE_PIPES}" = "y" ] && CT_CFLAGS_FOR_HOST+=" -pipe"
CT_CFLAGS_FOR_HOST+=" ${CT_EXTRA_FLAGS_FOR_HOST}"