# HG changeset patch # User Michael Hope # Date 1352819178 0 # Node ID a9130ff13b1908d92140e7dfc994dccdfba32102 # Parent cfb1783d4cb8b588ca9d7f4d8e8a3394e10b1c97 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 -r cfb1783d4cb8 -r a9130ff13b19 scripts/crosstool-NG.sh.in --- a/scripts/crosstool-NG.sh.in Fri Nov 09 18:22:31 2012 +0100 +++ b/scripts/crosstool-NG.sh.in Tue Nov 13 15:06:18 2012 +0000 @@ -494,7 +494,9 @@ 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}"