[GRASSLIST:4040] Re: More OGR lib compile fun

Radim Blazek blazek at itc.it
Wed Jul 28 03:59:22 EDT 2004


I have no explanation how/where '-ldl' was added to GDALLIBS.
Normally, if --with-gdal is used, it contains path to GDAL lib
and GDAL lib. 

Compilation of ogr driver is conditional and it was using
  ifneq ($(strip $(GDALLIBS)),)
which I changed to
  ifneq ($(strip $(USE_OGR)),)

OGR driver is used only for external data (v.external)

Radim


On Tuesday 27 July 2004 17:10, C.S. Cornuelle wrote:
> Radim,
>
> In grass-5.7.0/include/Make/Platform.make we have:
>
> #GDAL/OGR
> GDALLIBS            = -ldl
> GDALCFLAGS          =
> USE_OGR             =
>
> FYI:
>
> /usr/lib> ls libdl*
> libdl.a  libdl.so@
>
> However, during configure I did:
>
> CFLAGS="-g -Wall" ./configure --without-fftw --without-gdal
> --without-opengl --with-postgres-includes="/usr/local/pgsql/include"
> --with-postgres-libs="/usr/local/pgsql/lib"




More information about the grass-user mailing list