summaryrefslogtreecommitdiffstats
path: root/gdbm/gdbm-1.8.3-compat-linking.patch
blob: cebcf4e917ee870891f89ac8ab7420c24700ca07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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,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) libgdbm.la
 
 gdbm.h:	gdbm.proto gdbmerrno.h gdbm.proto2
 	rm -f gdbm.h