From 2f3747eb6e6cc4978587ed36e017791d48bea35b Mon Sep 17 00:00:00 2001
From: Axel Kohlmeyer <akohlmey@gmail.com>
Date: Thu, 10 Aug 2017 08:34:46 -0400
Subject: [PATCH] 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.
---
 lib/voronoi/Install.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/voronoi/Install.py b/lib/voronoi/Install.py
index 5a246bbeb1..a4d07ac745 100644
--- a/lib/voronoi/Install.py
+++ b/lib/voronoi/Install.py
@@ -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'))
 
-- 
GitLab