diff options
author | Michael Hope <michael.hope@linaro.org> | 2012-11-13 15:06:18 +0000 |
---|---|---|
committer | Michael Hope <michael.hope@linaro.org> | 2012-11-13 15:06:18 +0000 |
commit | 79a9f857e2fe6df6be889963dd504b84b1a3ea1a (patch) | |
tree | cfd0d3b56cdc3db43e40b831001306f988160900 | |
parent | da76ef4f7165facf7f82cf7cb76c99059cd5f6b0 (diff) | |
download | crosstool-ng-79a9f857e2fe6df6be889963dd504b84b1a3ea1a.tar.gz crosstool-ng-79a9f857e2fe6df6be889963dd504b84b1a3ea1a.tar.bz2 crosstool-ng-79a9f857e2fe6df6be889963dd504b84b1a3ea1a.zip |
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
-rw-r--r-- | scripts/crosstool-NG.sh.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in index a7a80156..a393cee1 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}" |