Allow py-meep to link properly

This commit is contained in:
Adam J. Stewart
2016-07-08 14:36:54 -05:00
parent 880cbb2217
commit 8d0758fc4c
4 changed files with 41 additions and 6 deletions

View File

@@ -61,6 +61,11 @@ def url_for_version(self, version):
return "{0}/old/meep-{1}.tar.gz".format(base_url, version)
def install(self, spec, prefix):
# Must be compiled with -fPIC for py-meep
env['CFLAGS'] = '-fPIC'
env['CXXFLAGS'] = '-fPIC'
env['FFLAGS'] = '-fPIC'
config_args = ['--prefix={0}'.format(prefix)]
if '+blas' in spec: