lorder: produce locale-independent symbol ordering

Found by the Debian reproducible builds effort -- Debian bug 830259.

Reported by:	Reiner Herrmann <reiner@reiner-h.de>
Approved by:	re (gjb)
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2016-07-07 20:50:59 +00:00
parent 035ec48e55
commit 932d4e19e6

View File

@ -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