1
0
mirror of https://github.com/cahirwpz/amigaos-cross-toolchain synced 2025-11-23 20:21:21 +00:00

Don't force host compiler to implement gnu89 standard.

This commit is contained in:
Krystian Bacławski
2016-05-10 09:23:11 +02:00
parent d390d3df4b
commit b0baf5dbfa

View File

@ -255,6 +255,7 @@ def build():
"""
find_executable('perl')
find_executable('gperf')
find_executable('patch')
find_executable('make')
find_executable('git')
@ -339,6 +340,8 @@ def build():
"""
unpack('{binutils}')
with env(CFLAGS='-g -O2 -Wall',
CXXFLAGS='-g -O2 -Wall'):
configure('{binutils}',
'--prefix={target}',
'--host=i686-linux-gnu',
@ -351,8 +354,8 @@ def build():
headers_install()
unpack('{gcc}')
with env(CC=environ['CC'] + ' -std=gnu89',
CXX=environ['CXX'] + ' -std=gnu++98'):
with env(CFLAGS='-g -O2 -Wall -U__inline',
CXXFLAGS='-g -O2 -Wall -U__inline'):
configure('{gcc}',
'--prefix={target}',
'--host=i686-linux-gnu',