From 65488aff88730eafe49e7e782b5f705a61f3d4b3 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 24 Jul 2021 12:13:04 -0500 Subject: [PATCH] Minor cleanup and rephrase a comment. --- scripts/make.sh | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/scripts/make.sh b/scripts/make.sh index 5b2d5d81..e050e705 100755 --- a/scripts/make.sh +++ b/scripts/make.sh @@ -92,18 +92,8 @@ genbuildsh() { # Write a canned build line for use on crippled build machines. - echo "#!/bin/sh" - echo - echo "PATH='$PATH'" - echo - echo "BUILD='$BUILD'" - echo - echo "LINK='$LINK'" - echo - echo "FILES='$LIBFILES $TOYFILES'" - echo - echo - echo '$BUILD $FILES $LINK' + echo -e "#!/bin/sh\n\nPATH='\$PATH'\n\nBUILD='\$BUILD'\n\nLINK='\$LINK'\n" + echo -e "FILES='$LIBFILES $TOYFILES'\n\n\$BUILD \$FILES \$LINK" } if ! cmp -s <(genbuildsh 2>/dev/null | head -n 6 ; echo LINK="'"$LDOPTIMIZE $LDFLAGS) \ @@ -111,10 +101,9 @@ if ! cmp -s <(genbuildsh 2>/dev/null | head -n 6 ; echo LINK="'"$LDOPTIMIZE $LDF then echo -n "Library probe" - # We trust --as-needed to remove each library if we don't use any symbols - # out of it, this loop is because the compiler has no way to ignore a library - # that doesn't exist, so we have to detect and skip nonexistent libraries - # for it. + # --as-needed removes libraries we don't use any symbols out of, but the + # compiler has no way to ignore a library that doesn't exist, so detect + # and skip nonexistent libraries for it. > generated/optlibs.dat for i in util crypt m resolv selinux smack attr crypto z log iconv -- 2.39.2