diff options
author | Yuri Pankov <yuripv@FreeBSD.org> | 2018-10-20 20:51:05 +0000 |
---|---|---|
committer | Yuri Pankov <yuripv@FreeBSD.org> | 2018-10-20 20:51:05 +0000 |
commit | 4644f9bef6bcfa8d1ead9db38a548567cda8eac6 (patch) | |
tree | bf3f05ef69b6c102a205b879802d456e8bd98265 /share/ctypedef | |
parent | f4f33ea0c752ff0f9bfad34991d5bbb54e71133d (diff) | |
download | src-4644f9bef6bcfa8d1ead9db38a548567cda8eac6.tar.gz src-4644f9bef6bcfa8d1ead9db38a548567cda8eac6.zip |
Add -b/-l options to localedef(1) to specify output endianness and use
it appropriately when building share/ctypedef and share/colldef.
This makes the resulting locale data in EL->EB (amd64->powerpc64) cross
build and in the native EB build match. Revert the changes done to libc
in r308170 as they are no longer needed.
PR: 231965
Reviewed by: bapt, emaste, sbruno, 0mp
Approved by: kib (mentor)
Differential Revision: https://reviews.freebsd.org/D17603
Notes
Notes:
svn path=/head/; revision=339489
Diffstat (limited to 'share/ctypedef')
-rw-r--r-- | share/ctypedef/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/share/ctypedef/Makefile b/share/ctypedef/Makefile index 028baf460e5b..8ba4c76d59aa 100644 --- a/share/ctypedef/Makefile +++ b/share/ctypedef/Makefile @@ -7,8 +7,10 @@ FILESNAME= LC_CTYPE .SUFFIXES: .src .LC_CTYPE MAPLOC= ${.CURDIR}/../../tools/tools/locale/etc/final-maps +.include <bsd.endian.mk> + .src.LC_CTYPE: - localedef -D -U -c -w ${MAPLOC}/widths.txt \ + localedef ${LOCALEDEF_ENDIAN} -D -U -c -w ${MAPLOC}/widths.txt \ -f ${MAPLOC}/map.${.IMPSRC:T:R:E} \ -i ${.IMPSRC} ${.OBJDIR}/${.IMPSRC:T:R} || true @@ -238,7 +240,7 @@ SYMPAIRS+= be_BY.CP1131.src ru_RU.KOI8-R.src .for s t in ${SYMPAIRS} ${t:S/src$/LC_CTYPE/}: $s - localedef -D -U -c -w ${MAPLOC}/widths.txt \ + localedef ${LOCALEDEF_ENDIAN} -D -U -c -w ${MAPLOC}/widths.txt \ -f ${MAPLOC}/map.${.TARGET:T:R:C/^.*\.//} \ -i ${.ALLSRC} ${.OBJDIR}/${.TARGET:T:R} || true .endfor |