From eeca9ed349ea15da0627225577d658b3266887f3 Mon Sep 17 00:00:00 2001 From: Tias Maiti Date: Wed, 29 Jan 2014 20:06:57 +0000 Subject: [PATCH] solved error: Undefined symbols for architecture x86_64: "_PyArg_ParseTupleAndKeywords" by adding arguments to LDFLAGS --- installation/compile_CoreModule.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/installation/compile_CoreModule.py b/installation/compile_CoreModule.py index 1e89324be..845e22a49 100755 --- a/installation/compile_CoreModule.py +++ b/installation/compile_CoreModule.py @@ -42,10 +42,11 @@ compiler = { }[options['F90']] #--- option not depending on compiler ------------------------------------------------------------- -compileOptions =' -DSpectral -DFLOAT=8 -DINT=4 -I%s/lib'%damaskEnv.rootDir() +compileOptions = ' -DSpectral -DFLOAT=8 -DINT=4 -I%s/lib'%damaskEnv.rootDir() #--- this saves the path of libraries to core.so, hence it is known during runtime ---------------- -LDFLAGS ='-shared -Wl,-rpath,%s/lib,-rpath,%s/lib64'%(options['FFTW_ROOT'],options['FFTW_ROOT']) +LDFLAGS = ' -undefined dynamic_lookup' # solved error: Undefined symbols for architecture x86_64: "_PyArg_ParseTupleAndKeywords" as found on https://lists.macosforge.org/pipermail/macports-dev/2013-May/022735.html +LDFLAGS += ' -shared -Wl,-rpath,%s/lib,-rpath,%s/lib64'%(options['FFTW_ROOT'],options['FFTW_ROOT']) # see http://cens.ioc.ee/pipermail/f2py-users/2003-December/000621.html if options['IMKL_ROOT']: