From 932d4e19e64bca40e86d1e63bf9409978f0d28a3 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Thu, 7 Jul 2016 20:50:59 +0000 Subject: [PATCH] lorder: produce locale-independent symbol ordering Found by the Debian reproducible builds effort -- Debian bug 830259. Reported by: Reiner Herrmann Approved by: re (gjb) Sponsored by: The FreeBSD Foundation --- usr.bin/lorder/lorder.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.bin/lorder/lorder.sh b/usr.bin/lorder/lorder.sh index 8123c96779b..4b6243cd347 100644 --- a/usr.bin/lorder/lorder.sh +++ b/usr.bin/lorder/lorder.sh @@ -73,6 +73,7 @@ ${NM} ${NMFLAGS} -go $* | sed " d " +export LC_ALL=C # eliminate references that can be resolved by the same library. if [ $(expr "$*" : '.*\.a[[:>:]]') -ne 0 ]; then sort -u -o $S $S