pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/libnbcompat/files Add dummy object not to bec...
details: https://anonhg.NetBSD.org/pkgsrc/rev/3e1e05067e57
branches: trunk
changeset: 461319:3e1e05067e57
user: itohy <itohy%pkgsrc.org@localhost>
date: Sun Sep 14 07:38:12 2003 +0000
description:
Add dummy object not to become totally empty
(a.out ld will fail on an empty library).
diffstat:
pkgtools/libnbcompat/files/Makefile.in | 10 +++++++---
pkgtools/libnbcompat/files/dummy.c | 4 ++++
2 files changed, 11 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r d040236f9930 -r 3e1e05067e57 pkgtools/libnbcompat/files/Makefile.in
--- a/pkgtools/libnbcompat/files/Makefile.in Sun Sep 14 07:36:12 2003 +0000
+++ b/pkgtools/libnbcompat/files/Makefile.in Sun Sep 14 07:38:12 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.in,v 1.18 2003/09/13 17:07:47 jlam Exp $
+# $NetBSD: Makefile.in,v 1.19 2003/09/14 07:38:12 itohy Exp $
#
srcdir= @srcdir@
@@ -36,8 +36,12 @@
.c.o: nbcompat/nbtypes.h
$(COMPILE) $(DEFS) -c $<
-$(LIB): $(OBJS)
- $(AR) cr $@ $(OBJS)
+# Add dummy.o not to become totally empty, which some ld's don't like.
+$(LIB): $(OBJS) dummy.o
+ @set -x; case "$(OBJS)" in \
+ *.*) $(AR) cr $@ $(OBJS);; \
+ *) $(AR) cr $@ dummy.o;; \
+ esac
$(RANLIB) $@
nbcompat/nbconfig.h: nbcompat/config.h
diff -r d040236f9930 -r 3e1e05067e57 pkgtools/libnbcompat/files/dummy.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/libnbcompat/files/dummy.c Sun Sep 14 07:38:12 2003 +0000
@@ -0,0 +1,4 @@
+/* $NetBSD: dummy.c,v 1.1 2003/09/14 07:38:13 itohy Exp $ */
+
+/* Written by ITOH Yasufumi in 2003. Public domain. */
+static int nbcompat_dummy;
Home |
Main Index |
Thread Index |
Old Index