Skip to content
Snippets Groups Projects
Commit 2f3747eb authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

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.
parent 2bc6ad80
No related branches found
No related tags found
No related merge requests found
......@@ -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'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment