From a3ebfb38cb840bd8d41c74df3c008105e3c6136d Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 27 Oct 2018 15:12:11 -0500 Subject: Don't unnecessarily recalculate library list. --- scripts/make.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/make.sh b/scripts/make.sh index 32e0825c..ca48cd02 100755 --- a/scripts/make.sh +++ b/scripts/make.sh @@ -101,8 +101,8 @@ genbuildsh() echo '$BUILD $FILES $LINK' } -if ! cmp -s <(genbuildsh | head -n 7) \ - <(head -n 7 generated/build.sh 2>/dev/null) +if ! cmp -s <(genbuildsh | head -n 6 ; echo LINK="'"$LDOPTIMIZE $LDFLAGS) \ + <(head -n 7 generated/build.sh 2>/dev/null | sed '7s/ -o .*//') then echo -n "Library probe" -- cgit v1.2.3