Browse Source

avr32: allow to build toolchain with newer host gcc

Waldemar Brodkorb 1 year ago
parent
commit
dc3464b48a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scripts/prereq.sh

+ 2 - 2
scripts/prereq.sh

@@ -359,8 +359,8 @@ else
   echo "HOST_CXX:=${CXX}" >> $topdir/prereq.mk
 fi
 
-echo "HOST_CFLAGS:=-O0 -g0" >> $topdir/prereq.mk
-echo "HOST_CXXFLAGS:=-O0 -g0" >> $topdir/prereq.mk
+echo "HOST_CFLAGS:=-O0 -g0 -fcommon" >> $topdir/prereq.mk
+echo "HOST_CXXFLAGS:=-O0 -g0 -fcommon" >> $topdir/prereq.mk
 echo 'LANGUAGE:=C' >> $topdir/prereq.mk
 echo 'LC_ALL:=C' >> $topdir/prereq.mk
 echo "_PATH:=$PATH" >> $topdir/prereq.mk