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
1.1 --- a/scripts/crosstool-NG.sh.in Fri Nov 09 18:22:31 2012 +0100
1.2 +++ b/scripts/crosstool-NG.sh.in Tue Nov 13 15:06:18 2012 +0000
1.3 @@ -494,7 +494,9 @@
1.4 fi
1.5
1.6 # Help gcc
1.7 - CT_CFLAGS_FOR_HOST=
1.8 + # Explicitly optimise, else the lines below will overide the
1.9 + # package's default optimisation flags
1.10 + CT_CFLAGS_FOR_HOST="-O2 -g"
1.11 [ "${CT_USE_PIPES}" = "y" ] && CT_CFLAGS_FOR_HOST+=" -pipe"
1.12 CT_CFLAGS_FOR_HOST+=" ${CT_EXTRA_FLAGS_FOR_HOST}"
1.13