[Bf-blender-cvs] [029bd44] master: SCons: Fix wrong flags usage after recent stdc89 changes

Sergey Sharybin noreply at git.blender.org
Wed Apr 29 10:58:11 CEST 2015


Commit: 029bd44bbd0fc6c1c59c6cb37f9e70c4dd23f91d
Author: Sergey Sharybin
Date:   Wed Apr 29 13:57:02 2015 +0500
Branches: master
https://developer.blender.org/rB029bd44bbd0fc6c1c59c6cb37f9e70c4dd23f91d

SCons: Fix wrong flags usage after recent stdc89 changes

CCFLAGS are used for both C and C++ compilers and one is better not to pass
C-related flags to C++ compiler. C-compiler flags are to be passed via CFLAGS
variable.

===================================================================

M	build_files/scons/config/linux-config.py

===================================================================

diff --git a/build_files/scons/config/linux-config.py b/build_files/scons/config/linux-config.py
index c3f0c43..6353120 100644
--- a/build_files/scons/config/linux-config.py
+++ b/build_files/scons/config/linux-config.py
@@ -230,7 +230,8 @@ WITH_BF_FREESTYLE = True
 CC = 'gcc'
 CXX = 'g++'
 
-CCFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing', '-std=gnu89', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64','-D_LARGEFILE64_SOURCE']
+CCFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64','-D_LARGEFILE64_SOURCE']
+CFLAGS = ['-std=gnu89']
 CXXFLAGS = []
 
 CPPFLAGS = []




More information about the Bf-blender-cvs mailing list