Fix handling for CFLAGS and LINKFLAGS like for CCFLAGS

Previously CFLAGS and LINKFLAGS were passed as a single
quoted argument to the compiler or linker. This patch splits the
paramters.

Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>
This commit is contained in:
Vinzenz Feenstra 2014-02-22 13:34:40 +01:00
parent 0f3556b486
commit 8706fc85ef
1 changed files with 11 additions and 0 deletions

View File

@ -173,6 +173,17 @@ for p in platform_list:
env['CCFLAGS'] = '' env['CCFLAGS'] = ''
env.Append(CCFLAGS=string.split(str(CCFLAGS))) env.Append(CCFLAGS=string.split(str(CCFLAGS)))
CFLAGS = env.get('CFLAGS', '')
env['CFLAGS'] = ''
env.Append(CFLAGS=string.split(str(CFLAGS)))
LINKFLAGS = env.get('LINKFLAGS', '')
env['LINKFLAGS'] = ''
env.Append(LINKFLAGS=string.split(str(LINKFLAGS)))
detect.configure(env) detect.configure(env)
env['platform'] = p env['platform'] = p
if not env.has_key('platform_libsuffix'): if not env.has_key('platform_libsuffix'):