mirror of
https://github.com/capnproto/pycapnp.git
synced 2025-03-04 16:35:04 +01:00
Add -fPIC flag to libcapnp build
This commit is contained in:
parent
4a26499586
commit
c4f558a9b4
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,8 @@ def build_libcapnp(bundle_dir, build_dir, verbose=False):
|
||||||
stdout = f
|
stdout = f
|
||||||
if verbose:
|
if verbose:
|
||||||
stdout = None
|
stdout = None
|
||||||
|
cxxflags = os.environ.get('CXXFLAGS', '')
|
||||||
|
os.environ['CXXFLAGS'] = cxxflags + ' -fPIC'
|
||||||
conf = subprocess.Popen(['./configure', '--disable-shared', '--prefix', build_dir], cwd=capnp_dir, stdout=stdout)
|
conf = subprocess.Popen(['./configure', '--disable-shared', '--prefix', build_dir], cwd=capnp_dir, stdout=stdout)
|
||||||
returncode = conf.wait()
|
returncode = conf.wait()
|
||||||
if returncode != 0:
|
if returncode != 0:
|
||||||
|
|
Loading…
Add table
Reference in a new issue