diff options
author | Vinzenz Feenstra <evilissimo@gmail.com> | 2014-02-22 13:34:40 +0100 |
---|---|---|
committer | Vinzenz Feenstra <evilissimo@gmail.com> | 2014-02-22 13:34:40 +0100 |
commit | 8706fc85efbcb51231cddb697bab6af24d536334 (patch) | |
tree | c0c788d03adf83d1cb5d29d5d83c6248d1c9ff9c | |
parent | 0f3556b486209cde5c33122d99184c8678414ccc (diff) |
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>
-rw-r--r-- | SConstruct | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 1fb82bfc33..879396ef62 100644 --- a/SConstruct +++ b/SConstruct @@ -173,6 +173,17 @@ for p in platform_list: env['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) env['platform'] = p if not env.has_key('platform_libsuffix'): |