summaryrefslogtreecommitdiff
path: root/share/ctypedef
diff options
context:
space:
mode:
authorYuri Pankov <yuripv@FreeBSD.org>2018-10-20 20:51:05 +0000
committerYuri Pankov <yuripv@FreeBSD.org>2018-10-20 20:51:05 +0000
commit4644f9bef6bcfa8d1ead9db38a548567cda8eac6 (patch)
treebf3f05ef69b6c102a205b879802d456e8bd98265 /share/ctypedef
parentf4f33ea0c752ff0f9bfad34991d5bbb54e71133d (diff)
downloadsrc-test2-4644f9bef6bcfa8d1ead9db38a548567cda8eac6.tar.gz
src-test2-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/Makefile6
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