From c4c13137cd6ea23c2866c5d537cc6a4593793bfe Mon Sep 17 00:00:00 2001 From: Urja Rannikko Date: Sat, 27 Aug 2016 21:06:15 +0300 Subject: [PATCH] fix building old gcc with new gcc by using -std=gnu89 --- tools/install_gcc_539 | 2 ++ tools/install_gcc_539_thumb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tools/install_gcc_539 b/tools/install_gcc_539 index ab14191..bcc222d 100755 --- a/tools/install_gcc_539 +++ b/tools/install_gcc_539 @@ -16,6 +16,8 @@ if [ "`which gmake`" != "" ]; then MAKE=gmake fi +export CFLAGS="-O2 -pipe -std=gnu89" + while read a do echo "$a" diff --git a/tools/install_gcc_539_thumb b/tools/install_gcc_539_thumb index 37ae9b9..2110e8e 100755 --- a/tools/install_gcc_539_thumb +++ b/tools/install_gcc_539_thumb @@ -16,6 +16,8 @@ if [ "`which gmake`" != "" ]; then MAKE=gmake fi +export CFLAGS="-O2 -pipe -std=gnu89" + while read a do echo "$a"