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:
emaste 2016-07-07 20:50:59 +00:00
parent 66d4dd42e5
commit 7c112ea987

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