Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-8]: src Pull up following revision(s) (requested by manu in ticke...



details:   https://anonhg.NetBSD.org/src/rev/d2a4d5362709
branches:  netbsd-8
changeset: 850784:d2a4d5362709
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Jul 04 12:57:45 2017 +0000

description:
Pull up following revision(s) (requested by manu in ticket #79):
        distrib/utils/libhack/Makefile.inc: revision 1.27
        lib/libc/gen/getcap.c: revision 1.57
        distrib/utils/libhack/Makefile: revision 1.25
Make shared -DSMALL libc buildable without breaking libhack
We used -DSMALL to exclude code from libc in order to build
libhack. Introduce -DLIBHACK to do this without so that
-DSMALL does not remove code necessary for building a shared libc

diffstat:

 distrib/utils/libhack/Makefile     |  3 ++-
 distrib/utils/libhack/Makefile.inc |  3 ++-
 lib/libc/gen/getcap.c              |  8 ++++----
 3 files changed, 8 insertions(+), 6 deletions(-)

diffs (66 lines):

diff -r 100346c828b5 -r d2a4d5362709 distrib/utils/libhack/Makefile
--- a/distrib/utils/libhack/Makefile    Tue Jul 04 12:54:30 2017 +0000
+++ b/distrib/utils/libhack/Makefile    Tue Jul 04 12:57:45 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2013/08/27 09:53:33 christos Exp $
+# $NetBSD: Makefile,v 1.24.18.1 2017/07/04 12:57:45 martin Exp $
 #
 # Stubs to kill off some things from libc:
 # This save space on a boot system.
@@ -10,6 +10,7 @@
 HACKOBJ?=${.OBJDIR}
 
 CPPFLAGS+=     -DSMALL
+CPPFLAGS+=     -DLIBHACK
 CPPFLAGS.runetable.c+= -I${HACKSRC}/../../../lib/libc/citrus \
                        -DALL_80_TO_FF_SW1
 CPPFLAGS.syslog.c+=    -I${HACKSRC}/../../../lib/libc/include
diff -r 100346c828b5 -r d2a4d5362709 distrib/utils/libhack/Makefile.inc
--- a/distrib/utils/libhack/Makefile.inc        Tue Jul 04 12:54:30 2017 +0000
+++ b/distrib/utils/libhack/Makefile.inc        Tue Jul 04 12:57:45 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.26 2014/08/25 14:11:51 christos Exp $
+# $NetBSD: Makefile.inc,v 1.26.8.1 2017/07/04 12:57:45 martin Exp $
 #
 # Include this fragment to build libhack.o
 # It is .o and not .a to make sure these are the
@@ -17,6 +17,7 @@
 #                      
 
 CPPFLAGS+=     -DSMALL
+CPPFLAGS+=     -DLIBHACK
 HACKOBJS+=     getcap.o getgrent.o getnet.o getnetgr.o getpwent.o \
                localeconv.o multibyte.o perror.o runetable.o setlocale.o \
                strerror.o strsignal.o syslog.o utmp.o yplib.o
diff -r 100346c828b5 -r d2a4d5362709 lib/libc/gen/getcap.c
--- a/lib/libc/gen/getcap.c     Tue Jul 04 12:54:30 2017 +0000
+++ b/lib/libc/gen/getcap.c     Tue Jul 04 12:57:45 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getcap.c,v 1.56 2014/09/24 13:18:52 christos Exp $     */
+/*     $NetBSD: getcap.c,v 1.56.8.1 2017/07/04 12:57:45 martin Exp $   */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -41,11 +41,11 @@
 #if 0
 static char sccsid[] = "@(#)getcap.c   8.3 (Berkeley) 3/25/94";
 #else
-__RCSID("$NetBSD: getcap.c,v 1.56 2014/09/24 13:18:52 christos Exp $");
+__RCSID("$NetBSD: getcap.c,v 1.56.8.1 2017/07/04 12:57:45 martin Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
-#ifndef SMALL
+#ifndef LIBHACK
 #include "namespace.h"
 #endif
 #include <sys/types.h>
@@ -65,7 +65,7 @@
 #include <string.h>
 #include <unistd.h>
 
-#if defined(__weak_alias) && !defined(SMALL)
+#if defined(__weak_alias) && !defined(LIBHACK)
 __weak_alias(cgetcap,_cgetcap)
 __weak_alias(cgetclose,_cgetclose)
 __weak_alias(cgetent,_cgetent)



Home | Main Index | Thread Index | Old Index