diff --git a/installation/compile_CoreModule.py b/installation/compile_CoreModule.py index c45e197bb..1e89324be 100755 --- a/installation/compile_CoreModule.py +++ b/installation/compile_CoreModule.py @@ -45,7 +45,7 @@ compiler = { 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 ='-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']: @@ -55,13 +55,13 @@ if options['IMKL_ROOT']: arch = 'intel' lib_lapack = '-L%s/lib/intel64 -lmkl_%s_lp64 -lmkl_core -lmkl_sequential -lpthread -lm -liomp5'\ %(options['IMKL_ROOT'],arch) - LDFLAGS +=',-rpath=%s/lib/intel64'%(options['IMKL_ROOT']) + LDFLAGS +=',-rpath,%s/lib/intel64'%(options['IMKL_ROOT']) elif options['ACML_ROOT'] != '': lib_lapack = '-L%s/%s64/lib -lacml'%(options['ACML_ROOT'],options['F90']) - LDFLAGS +=',-rpath=%s/%s64/lib'%(options['ACML_ROOT'],options['F90']) + LDFLAGS +=',-rpath,%s/%s64/lib'%(options['ACML_ROOT'],options['F90']) elif options['LAPACK_ROOT'] != '': lib_lapack = '-L%s/lib -L%s/lib64 -llapack'%(options['LAPACK_ROOT'],options['LAPACK_ROOT']) - LDFLAGS +=',-rpath=%s/lib,-rpath=%s/lib64'%(options['LAPACK_ROOT'],options['LAPACK_ROOT']) + LDFLAGS +=',-rpath,%s/lib,-rpath,%s/lib64'%(options['LAPACK_ROOT'],options['LAPACK_ROOT']) #-------------------------------------------------------------------------------------------------- # f2py does not (yet) support setting of special flags for the linker, hence they must be set via