summaryrefslogtreecommitdiff
path: root/share/colldef
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/colldef
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/colldef')
-rw-r--r--share/colldef/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/share/colldef/Makefile b/share/colldef/Makefile
index 478a91b2e5f8..21db46b3b4d4 100644
--- a/share/colldef/Makefile
+++ b/share/colldef/Makefile
@@ -7,8 +7,10 @@ FILESNAME= LC_COLLATE
.SUFFIXES: .src .LC_COLLATE
MAPLOC= ${.CURDIR}/../../tools/tools/locale/etc/final-maps
+.include <bsd.endian.mk>
+
.src.LC_COLLATE:
- localedef -D -U -i ${.IMPSRC} \
+ localedef ${LOCALEDEF_ENDIAN} -D -U -i ${.IMPSRC} \
-f ${MAPLOC}/map.${.TARGET:T:R:E:C/@.*//} ${.OBJDIR}/${.IMPSRC:T:R}
LOCALES+= af_ZA.UTF-8
@@ -223,7 +225,7 @@ FILESDIR_${f}.LC_COLLATE= ${LOCALEDIR}/${f}
FILES+= $t.LC_COLLATE
FILESDIR_$t.LC_COLLATE= ${LOCALEDIR}/$t
$t.LC_COLLATE: ${.CURDIR}/$f.src
- localedef -D -U -i ${.ALLSRC} \
+ localedef ${LOCALEDEF_ENDIAN} -D -U -i ${.ALLSRC} \
-f ${MAPLOC}/map.${.TARGET:T:R:E:C/@.*//} \
${.OBJDIR}/${.TARGET:T:R}
.endfor