diff options
| author | manu <manu@NetBSD.org> | 2017-06-18 03:56:39 +0000 |
|---|---|---|
| committer | manu <manu@NetBSD.org> | 2017-06-18 03:56:39 +0000 |
| commit | 07c21eb889793f7cf3edeb5229974371b56399cb (patch) | |
| tree | 8934327039307834df0be6a8a7b6f3759f445010 /distrib/utils/libhack | |
| parent | 9103e71a0254e60b566e0b892243267878d357ab (diff) | |
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 (limited to 'distrib/utils/libhack')
| -rw-r--r-- | distrib/utils/libhack/Makefile | 3 | ||||
| -rw-r--r-- | distrib/utils/libhack/Makefile.inc | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/distrib/utils/libhack/Makefile b/distrib/utils/libhack/Makefile index 7b117f46e9a..b627086d297 100644 --- a/distrib/utils/libhack/Makefile +++ b/distrib/utils/libhack/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.24 2013/08/27 09:53:33 christos Exp $ +# $NetBSD: Makefile,v 1.25 2017/06/18 03:56:39 manu Exp $ # # Stubs to kill off some things from libc: # This save space on a boot system. @@ -10,6 +10,7 @@ HACKSRC?=${.CURDIR} 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 --git a/distrib/utils/libhack/Makefile.inc b/distrib/utils/libhack/Makefile.inc index 2b60b565e75..cb7d9645ea7 100644 --- a/distrib/utils/libhack/Makefile.inc +++ b/distrib/utils/libhack/Makefile.inc @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.26 2014/08/25 14:11:51 christos Exp $ +# $NetBSD: Makefile.inc,v 1.27 2017/06/18 03:56:39 manu 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 |
