From 99bfe9da4142ae94ecd0a4b6210a614d2f454464 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 20 Sep 2022 01:10:25 -0500 Subject: [PATCH] Older versions of bash (such as the one in macos) don't understand &>> and despite >& and &> being listed as synonyms in the bash man page, >>& isn't supported even by the new ones. Need to circle back to this and fix it another way, but unbreak macos for now. --- scripts/make.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/make.sh b/scripts/make.sh index ecaf63b5..a25eed2b 100755 --- a/scripts/make.sh +++ b/scripts/make.sh @@ -85,7 +85,7 @@ then [ -z "$V" ] && X=/dev/null || X=/dev/stderr for i in util crypt m resolv selinux smack attr crypto z log iconv tls ssl do - do_loudly ${CROSS_COMPILE}${CC} $CFLAGS $LDFLAGS -xc - -l$i &>>$X \ + do_loudly ${CROSS_COMPILE}${CC} $CFLAGS $LDFLAGS -xc - -l$i &>$X \ -o "$UNSTRIPPED"/libprobe <<<"int main(int argc,char*argv[]){return 0;}"&& do_loudly echo -n ' '-l$i >> "$GENDIR"/optlibs.new done -- 2.39.2