we need to override compiler flags in lib/voronoi/Install.py

The default compiler flags in voro++'s config.mk file do not include
-fPIC, which makes it incompatible with building the shared object for
the python wrapper.
This commit is contained in:
Axel Kohlmeyer 2017-08-10 08:34:46 -04:00
parent 2bc6ad80d4
commit 2f3747eb6e
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ if buildflag:
if buildflag:
print("Building Voro++ ...")
cmd = 'cd "%s"; make' % homedir
cmd = 'cd "%s"; make CXX=g++ CFLAGS="-fPIC -O3"' % homedir
txt = subprocess.check_output(cmd,stderr=subprocess.STDOUT,shell=True)
print(txt.decode('UTF-8'))