openbsd-ports/databases/gdbm/patches/patch-Makefile_in

40 lines
1021 B
Plaintext

$OpenBSD: patch-Makefile_in,v 1.5 2008/10/20 20:26:21 steven Exp $
--- Makefile.in.orig Tue Oct 8 18:09:12 2002
+++ Makefile.in Mon Oct 20 22:24:03 2008
@@ -8,7 +8,7 @@ CC = @CC@
LIBTOOL = @LIBTOOL@
# GDBM 1.8.3 builds shared libraries version 3.0
-SHLIB_VER = 3 0 0
+SHLIB_VER = 3:0:0
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
@@ -24,7 +24,7 @@ TEXI2DVI = texi2dvi
DEFS =
# Where the system [n]dbm routines are...
-LIBS = @LIBS@ -lc
+LIBS = @LIBS@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
@@ -122,7 +122,7 @@ MSCFILES = COPYING ChangeLog Makefile.in README gdbm.3
DISTFILES = $(SRCS) $(HDRS) $(MSCFILES)
-all: libgdbm.la libgdbm_compat.la
+all: libgdbm.la libgdbm_compat.la info
progs: $(PROGS)
@@ -156,7 +156,7 @@ install-compat:
libgdbm.la: $(LOBJS) gdbm.h
rm -f libgdbm.la
$(LIBTOOL) --mode=link $(CC) -o libgdbm.la -rpath $(libdir) \
- -version-info $(SHLIB_VER) $(LOBJS)
+ ${libgdbm_la_LDFLAGS} $(LOBJS)
libgdbm_compat.la: $(C_LOBJS) gdbm.h
rm -f libgdbm_compat.la