diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-05-02 08:52:21 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-05-02 08:52:21 +0200 |
commit | 7fddef375385fb46a27507472a5f9ca8b1d66fab (patch) | |
tree | b91919b187bfded934833b44f9ac03ab0badc730 /scripts/scan-tools.sh | |
parent | 5c5b24f4139bbce45beb31473247d550520035d1 (diff) |
create HOST_CFLAGS/HOST_CXXFLAGS dynamically for static-libgcc systems
Diffstat (limited to 'scripts/scan-tools.sh')
-rw-r--r-- | scripts/scan-tools.sh | 6 |
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) |