summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-05-02 08:52:21 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2015-05-02 08:52:21 +0200
commit7fddef375385fb46a27507472a5f9ca8b1d66fab (patch)
treeb91919b187bfded934833b44f9ac03ab0badc730 /scripts
parent5c5b24f4139bbce45beb31473247d550520035d1 (diff)
create HOST_CFLAGS/HOST_CXXFLAGS dynamically for static-libgcc systems
Diffstat (limited to 'scripts')
-rw-r--r--scripts/scan-tools.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/scan-tools.sh b/scripts/scan-tools.sh
index 7e27f4014..7c0e89cea 100644
--- a/scripts/scan-tools.sh
+++ b/scripts/scan-tools.sh
@@ -100,7 +100,11 @@ X=$($makecmd ADK_TOPDIR=$topdir LDADD=-lgcc 2>&1)
if [[ $X != *@(Native compiler works)* ]]; then
echo Cannot compile with shared libgcc use static one.
HOST_CFLAGS=-static-libgcc
- echo "HOST_CFLAGS:=-static-libgcc" >> $topdir/prereq.mk
+ echo "HOST_CFLAGS:=-O0 -g0 -static-libgcc" >> $topdir/prereq.mk
+ echo "HOST_CXXFLAGS:=-O0 -g0 -static-libgcc" >> $topdir/prereq.mk
+else
+ echo "HOST_CFLAGS:=-O0 -g0" >> $topdir/prereq.mk
+ echo "HOST_CXXFLAGS:=-O0 -g0" >> $topdir/prereq.mk
fi
X=$($makecmd ADK_TOPDIR=$topdir HOST_CFLAGS=${HOST_CFLAGS} 2>&1)