diff options
| author | martin <martin@NetBSD.org> | 2007-11-06 19:27:07 +0000 |
|---|---|---|
| committer | martin <martin@NetBSD.org> | 2007-11-06 19:27:07 +0000 |
| commit | 6c6288880973fb7b425ba16b433bcf2690d4f419 (patch) | |
| tree | 8a96c07209bd1a83e65db7517c2fa7d428ead3fc /distrib/utils/libhack | |
| parent | c607cb216f27215bdddbc6a0c2ddcc1f5e116a36 (diff) | |
Compile a special version of the default locale into libhack - we can
not use real locales, but this at least allows single byte character
locales to work as expected (i.e. the existing translations for sysinst).
Once we get a sysinst translation that needs more, we'll have to drop this
and the castrated setlocale(), and go for a real solution.
Diffstat (limited to 'distrib/utils/libhack')
| -rw-r--r-- | distrib/utils/libhack/Makefile | 7 | ||||
| -rw-r--r-- | distrib/utils/libhack/Makefile.inc | 7 |
2 files changed, 9 insertions, 5 deletions
diff --git a/distrib/utils/libhack/Makefile b/distrib/utils/libhack/Makefile index 23b80a1f220..20d2b2fc926 100644 --- a/distrib/utils/libhack/Makefile +++ b/distrib/utils/libhack/Makefile @@ -1,16 +1,17 @@ -# $NetBSD: Makefile,v 1.20 2007/04/02 15:53:25 christos Exp $ +# $NetBSD: Makefile,v 1.21 2007/11/06 19:27:07 martin Exp $ # # Stubs to kill off some things from libc: # This save space on a boot system. # (See Makefile.inc also.) -.PATH.c: ${.CURDIR}/../../../lib/libc/gen +.PATH.c: ${.CURDIR}/../../../lib/libc/gen ${.CURDIR}/../../../lib/libc/locale CPPFLAGS+= -DSMALL +CPPFLAGS.runetable.c+= -I ${HACKSRC}/../../../lib/libc -DALL_80_TO_FF_SW1 LIB= hack SRCS= getcap.c getgrent.c getnet.c getnetgr.c getpwent.c \ - localeconv.c multibyte.c perror.c setlocale.c \ + localeconv.c multibyte.c perror.c runetable.c setlocale.c \ strerror.c strsignal.c syslog.c utmp.c yplib.c WARNS= 1 diff --git a/distrib/utils/libhack/Makefile.inc b/distrib/utils/libhack/Makefile.inc index 7c02464f983..d075d6ddb2d 100644 --- a/distrib/utils/libhack/Makefile.inc +++ b/distrib/utils/libhack/Makefile.inc @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.21 2007/04/02 15:53:25 christos Exp $ +# $NetBSD: Makefile.inc,v 1.22 2007/11/06 19:27:07 martin Exp $ # # Include this fragment to build libhack.o # It is .o and not .a to make sure these are the @@ -18,9 +18,11 @@ CPPFLAGS+= -DSMALL HACKOBJS+= getcap.o getgrent.o getnet.o getnetgr.o getpwent.o \ - localeconv.o multibyte.o perror.o setlocale.o \ + localeconv.o multibyte.o perror.o runetable.o setlocale.o \ strerror.o strsignal.o syslog.o utmp.o yplib.o +CPPFLAGS.runetable.c+= -I ${HACKSRC}/../../../lib/libc -DALL_80_TO_FF_SW1 + libhack.o: ${HACKOBJS} ${LD} -r -o $@ ${HACKOBJS} @@ -36,6 +38,7 @@ getpwent.o: ${HACKSRC}/getpwent.c localeconv.o: ${HACKSRC}/localeconv.c multibyte.o: ${HACKSRC}/multibyte.c perror.o: ${HACKSRC}/perror.c +runetable.o: ${HACKSRC}/../../../lib/libc/locale/runetable.c setlocale.o: ${HACKSRC}/setlocale.c strerror.o: ${HACKSRC}/strerror.c strsignal.o: ${HACKSRC}/strsignal.c |
