aboutsummaryrefslogtreecommitdiff
path: root/tools/make_libdeps.sh
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2013-09-10 18:34:38 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2013-09-10 18:34:38 +0000
commitbe460ad56d055b3395ab78504bd8cbd0dc9800d7 (patch)
tree9f38104a7cd2ecd7e48d347f113e5977bb4a9555 /tools/make_libdeps.sh
parentc8a84c2aa6b79a393f593db807cb19225a90da6a (diff)
downloadsrc-be460ad56d055b3395ab78504bd8cbd0dc9800d7.tar.gz
src-be460ad56d055b3395ab78504bd8cbd0dc9800d7.zip
Make this more deterministic by sorting the libraries before processing
them and ensuring that we always use the samme collation rules. Approved by: re (gjb)
Notes
Notes: svn path=/head/; revision=255454
Diffstat (limited to 'tools/make_libdeps.sh')
-rw-r--r--tools/make_libdeps.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/make_libdeps.sh b/tools/make_libdeps.sh
index 3b59488e1cf5..2f5b32b19287 100644
--- a/tools/make_libdeps.sh
+++ b/tools/make_libdeps.sh
@@ -28,6 +28,7 @@
export PATH=/bin:/usr/bin
+LC_ALL=C # make sort deterministic
FS=': ' # internal field separator
LIBDEPENDS=./_libdeps # intermediate output file
USRSRC=${1:-/usr/src} # source root
@@ -64,7 +65,7 @@ genlibdepends()
{
(
cd ${USRSRC}
- find ${LIBS} -mindepth 1 -name Makefile |
+ find -s ${LIBS} -mindepth 1 -name Makefile |
xargs grep -l 'bsd\.lib\.mk' |
while read makefile; do
libdir=$(dirname ${makefile})