From 79a9f857e2fe6df6be889963dd504b84b1a3ea1a Mon Sep 17 00:00:00 2001 From: Michael Hope Date: Tue, 13 Nov 2012 15:06:18 +0000 Subject: 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 Signed-off-by: Michael Hope Message-Id: Patchwork-Id: 198808 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}" -- cgit v0.10.2-6-g49f6