mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
g++ needs -fPIC for static archives
This commit is contained in:
parent
a248f880d6
commit
045c544a4f
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…
x
Reference in New Issue
Block a user