g++ needs -fPIC for static archives
This commit is contained in:
parent
a248f880d6
commit
045c544a4f
2 changed files with 7 additions and 6 deletions
6
deps/agg/build.py
vendored
6
deps/agg/build.py
vendored
|
@ -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=[])
|
7
deps/clipper/build.py
vendored
7
deps/clipper/build.py
vendored
|
@ -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=[])
|
||||
|
|
Loading…
Add table
Reference in a new issue