Fix `-fPIC` CXXFLAGS.
This commit is contained in:
parent
c9210bb0e0
commit
466dc8b64a
|
@ -312,6 +312,7 @@ class MakeBuilder(Builder):
|
|||
env = Defaultdict(str, os.environ)
|
||||
if self.buildEnv.platformInfo.static:
|
||||
env['CFLAGS'] = env['CFLAGS'] + ' -fPIC'
|
||||
env['CXXFLAGS'] = env['CXXFLAGS'] + ' -fPIC'
|
||||
if self.configure_env:
|
||||
for k in self.configure_env:
|
||||
if k.startswith('_format_'):
|
||||
|
@ -367,6 +368,7 @@ class CMakeBuilder(MakeBuilder):
|
|||
env = Defaultdict(str, os.environ)
|
||||
if self.buildEnv.platformInfo.static:
|
||||
env['CFLAGS'] = env['CFLAGS'] + ' -fPIC'
|
||||
env['CXXFLAGS'] = env['CXXFLAGS'] + ' -fPIC'
|
||||
if self.configure_env:
|
||||
for k in self.configure_env:
|
||||
if k.startswith('_format_'):
|
||||
|
|
|
@ -18,8 +18,8 @@ class Xapian(Dependency):
|
|||
|
||||
class Builder(MakeBuilder):
|
||||
configure_option = "--disable-sse --disable-backend-chert --disable-backend-inmemory --disable-documentation"
|
||||
configure_env = {'_format_LDFLAGS': "-L{buildEnv.install_dir}/{buildEnv.libprefix}",
|
||||
'_format_CXXFLAGS': "-I{buildEnv.install_dir}/include"}
|
||||
configure_env = {'_format_LDFLAGS': "{env.LDFLAGS} -L{buildEnv.install_dir}/{buildEnv.libprefix}",
|
||||
'_format_CXXFLAGS': "{env.CXXFLAGS} -I{buildEnv.install_dir}/include"}
|
||||
|
||||
@classmethod
|
||||
def get_dependencies(cls, platformInfo, allDeps):
|
||||
|
|
Loading…
Reference in New Issue