[gdal-dev] No SONAME in libgdal.so when building with --without-libtool

Gareth Francis gfrancis.dev at gmail.com
Fri Aug 5 08:02:28 PDT 2016


Encountered on Centos 6, x86_64

configured with --without-libtool, resulting libgdal.so has no SONAME entry

The link command for libgdal.so uses the variable 'GDAL_SLIB_SONAME' which
isn't defined in GDALmake.opt.in

The attached patch fixes the issue, and I believe will generate the same
name as libtool.

Thanks
Gareth Francis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20160805/df104d37/attachment.html>
-------------- next part --------------
Index: GDALmake.opt.in
===================================================================
--- GDALmake.opt.in	(revision 34928)
+++ GDALmake.opt.in	(working copy)
@@ -135,6 +135,7 @@
 GDAL_LIB	= 	$(GDAL_ROOT)/libgdal.a
 GDAL_SLIB	=	$(GDAL_ROOT)/libgdal.$(SO_EXT)
 GDAL_SLIB_LINK	=	-L$(GDAL_ROOT) -lgdal
+GDAL_SLIB_SONAME = -Wl,-soname,libgdal.$(SO_EXT). at GDAL_VERSION_MAJOR@
 
 # Mac OS X Framework definition
 MACOSX_FRAMEWORK = @MACOSX_FRAMEWORK@


More information about the gdal-dev mailing list