g++ needs -fPIC for static archives

This commit is contained in:
Dane Springmeyer 2013-10-23 16:00:39 -07:00
parent a248f880d6
commit 045c544a4f
2 changed files with 7 additions and 6 deletions

6
deps/agg/build.py vendored
View file

@ -21,5 +21,7 @@ import os
from glob import glob
Import('env')
agg_env = env.Clone()
agg_env.StaticLibrary('agg', glob('./src/' + '*.cpp'), LIBS=[])
lib_env = env.Clone()
if 'g++' in env['CXX']:
lib_env.Append(CXXFLAGS='-fPIC')
lib_env.StaticLibrary('agg', glob('./src/' + '*.cpp'), LIBS=[])

View file

@ -21,7 +21,6 @@ import os
from glob import glob
Import('env')
clipper_env = env.Clone()
clipper_env.StaticLibrary('clipper', ['./src/clipper.cpp',], LIBS=[])
lib_env = env.Clone()
lib_env.Append(CXXFLAGS='-fPIC')
lib_env.StaticLibrary('clipper', ['./src/clipper.cpp',], LIBS=[])