Subject: bug#57029: bug#57015: bug#57029: macos cannot build emacs after updated gcc and libgccjit to 12.1

From: Andreas Schwab <[email-masked]>
Date: Mon, 08 Aug 2022 10:08:49 +0200

On Aug 08 2022, Gerd Möllmann wrote:

> Eli Zaretskii <[email-masked]> writes:
>
>>> -          MAC_LIBS="-L$(dirname $($BREW ls -v libgccjit| \
>>> -                                            grep -E 'libgccjit\.(so|dylib)$'))"
>>> +          MAC_LIBS="-L$(dirname $($BREW ls -v libgccjit | \
>>> +                                  grep -E 'current/libgccjit\.(so|dylib)$' | \
>>> +                                  head -1))"
>>> +          if test "x${MAC_LIBS}" = "x-L"; then
>
> The 'x' is kind of confusing here because MAC_LIBS can't be empty at
> this point.

This x prefix is not about emptyness, but preventing a pre-POSIX test
utility from being confused by the leading dash.

-- 
Andreas Schwab, SUSE Labs, [email-masked]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."