[GRASS-user] more on my make problems
Glynn Clements
glynn at gclements.plus.com
Tue Jul 10 09:21:47 EDT 2007
Gerald Nelson wrote:
> When I cd into the first of the modules with problems and run make there, the first error-looking thing says
>
> /usr/bin/ld: /usr/local/lib/libfftw3.a(apiplan.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
First, try to get a shared version of FFTW.
If you can't do that:
1. Change lib/gmath/Makefile:
-EXTRA_LIBS=$(GISLIB) $(FFTWLIB) $(LAPACKLIB) $(BLASLIB)
+EXTRA_LIBS=$(GISLIB) $(LAPACKLIB) $(BLASLIB)
2. Change include/Make/Grass.make.in (and Grass.make if it already exists):
-GMATHLIB = -l$(GMATH_LIBNAME) $(GISLIB)
+GMATHLIB = -l$(GMATH_LIBNAME) $(GISLIB) $(FFTWLIB)
3. Re-compile.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-user
mailing list