[compat-gdbm] don't link against libgdbm

Honza Horak hhorak at fedoraproject.org
Tue Mar 5 09:59:24 UTC 2013


commit 416a2666be83415d02068d822519e233fd40e643
Author: Honza HorĂ¡k <hhorak at redhat.com>
Date:   Tue Mar 5 10:58:40 2013 +0100

    don't link against libgdbm

 compat-gdbm.spec   |    2 ++
 gdbm-linking.patch |   12 ++++++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/compat-gdbm.spec b/compat-gdbm.spec
index 59913c4..54da2d2 100644
--- a/compat-gdbm.spec
+++ b/compat-gdbm.spec
@@ -26,6 +26,7 @@ Patch3: gdbm-1.8.3-ndbmlock.patch
 # Prevent compilation of c++ files that use gdbm from warnings.
 # g++ compilator complained about the use of anonymous class
 Patch4: gdbm-1.8.3-filestruct.patch
+Patch5: gdbm-linking.patch
 License: GPLv2+
 URL: http://www.gnu.org/software/gdbm/
 Group: System Environment/Libraries
@@ -65,6 +66,7 @@ the compat-gdbm package.
 %patch2 -p1 -b .shortread
 %patch3 -p1 -b .ndbmlock
 %patch4 -p1 -b .filestruct
+%patch5 -p1 -b .linking
 
 libtoolize --force --copy
 aclocal
diff --git a/gdbm-linking.patch b/gdbm-linking.patch
new file mode 100644
index 0000000..d1cb65d
--- /dev/null
+++ b/gdbm-linking.patch
@@ -0,0 +1,12 @@
+diff -up gdbm-1.8.3/Makefile.in.debug gdbm-1.8.3/Makefile.in
+--- gdbm-1.8.3/Makefile.in.debug	2013-03-05 10:26:54.254331149 +0100
++++ gdbm-1.8.3/Makefile.in	2013-03-05 10:27:09.263330736 +0100
+@@ -149,7 +149,7 @@ libgdbm.la: $(LOBJS) gdbm.h
+ libgdbm_compat.la: $(C_LOBJS) gdbm.h
+ 	rm -f libgdbm_compat.la
+ 	$(LIBTOOL) --mode=link $(CC) -o libgdbm_compat.la -rpath $(libdir) \
+-		-version-info $(SHLIB_VER) $(C_LOBJS) -lgdbm
++		-version-info $(SHLIB_VER) $(C_LOBJS)
+ 
+ gdbm.h:	gdbm.proto gdbmerrno.h gdbm.proto2
+ 	rm -f gdbm.h


More information about the scm-commits mailing list