Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 0762e922e02f33d1f12970e7e146ee3a > files > 4

shapelib-1.2.10-22.20100216cvs.fc13.src.rpm

diff -Naur shapelib-1.2.10/Makefile shapelib-1.2.10-mod/Makefile
--- shapelib-1.2.10/Makefile	2010-02-16 09:43:03.000000000 +0200
+++ shapelib-1.2.10-mod/Makefile	2010-02-16 09:43:43.000000000 +0200
@@ -13,6 +13,7 @@
 
 CC = gcc
 CFLAGS =       -g
+LDFLAGS = --build-id
 
 
 default:	all
@@ -134,7 +135,7 @@
 	rm -fr .libs/libshp.la .libs/libshp.* .libs/libshp.*
 	rm -fr .libs/libshp.lax
 	mkdir .libs/libshp.lax
-	$(LD) -G -h libshp.so.1 -o .libs/libshp.so.$(LIBSHP_VERSION)  shpopen.lo shptree.lo dbfopen.lo safileio.lo -lc
+	$(LD) $(LDFLAGS) -G -h libshp.so.1 -o .libs/libshp.so.$(LIBSHP_VERSION)  shpopen.lo shptree.lo dbfopen.lo safileio.lo -lc
 
 	(cd .libs && rm -f libshp.so.1 && ln -s libshp.so.$(LIBSHP_VERSION) libshp.so.1)
 	(cd .libs && rm -f libshp.so && ln -s libshp.so.$(LIBSHP_VERSION) libshp.so)