summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-libs/gdbm/files/gdbm-1.8.3-compat-linking.patch12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys-libs/gdbm/files/gdbm-1.8.3-compat-linking.patch b/sys-libs/gdbm/files/gdbm-1.8.3-compat-linking.patch
index 6a77e3f64fbd..cebcf4e917ee 100644
--- a/sys-libs/gdbm/files/gdbm-1.8.3-compat-linking.patch
+++ b/sys-libs/gdbm/files/gdbm-1.8.3-compat-linking.patch
@@ -1,15 +1,19 @@
-Taken from Debian
+Since libgdbm_compat uses libgdbm, make sure we link it in.
http://bugs.gentoo.org/165263
--- gdbm-1.8.3/Makefile.in
+++ gdbm-1.8.3/Makefile.in
-@@ -161,7 +161,7 @@
- libgdbm_compat.la: $(C_LOBJS) gdbm.h
+@@ -161,10 +161,10 @@
+ $(LIBTOOL) --mode=link $(CC) -o libgdbm.la -rpath $(libdir) \
+ -version-info $(SHLIB_VER) $(LOBJS)
+
+-libgdbm_compat.la: $(C_LOBJS) gdbm.h
++libgdbm_compat.la: $(C_LOBJS) gdbm.h libgdbm.la
rm -f libgdbm_compat.la
$(LIBTOOL) --mode=link $(CC) -o libgdbm_compat.la -rpath $(libdir) \
- -version-info $(SHLIB_VER) $(C_LOBJS)
-+ -version-info $(SHLIB_VER) $(C_LOBJS) -lgdbm
++ -version-info $(SHLIB_VER) $(C_LOBJS) libgdbm.la
gdbm.h: gdbm.proto gdbmerrno.h gdbm.proto2
rm -f gdbm.h