From: "Pietro Monteiro" <pietro@sociotechnical.xyz>
To: binutils@sourceware.org, gdb-patches@sourceware.org
Subject: Re: [PATCH] config: Sync pkg.m4 from GCC
Date: Wed, 28 Oct 2026 18:07:38 -0400 [thread overview]
Message-ID: <29fe9290-0779-4729-b0f9-b56d5b58106b@app.fastmail.com> (raw)
In-Reply-To: <20261028220341.84076-2-pietro@sociotechnical.xyz>
Sorry, meant to tag this patch as committed.
On Wed, Oct 28, 2026, at 6:03 PM, Pietro Monteiro wrote:
> Sorry I missed this patch had been reviwed:
> https://inbox.sourceware.org/gcc-patches/20250530213858.59471-1-pietro@sociotechnical.xyz/t/
>
> I regenerated all autoconf files after applying the patch and there's no
> changes.
>
> pietro
> -- >8 --
> Sync the following commit from GCC:
>
> commit 6382527abc778ecbfedb8a85ddcc502cd97ddee9
> Author: Pietro Monteiro <pietro@sociotechnical.xyz>
> Date: Thu Oct 22 18:48:54 2026 -0400
>
> config: Update obsolete macro in pkg.m4
>
> The autoconf macro PKG_CHECK_MODULES defined in config/pkg.m4 uses the
> obsolete AC_TRY_LINK[1]. Update the code to use AC_LINK_IFELSE as
> documented by autoconf
>
> There's no difference to the generated files.
>
> [1]
> https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html#index-AC_005fTRY_005fLINK-2207
>
> config/ChangeLog:
>
> * pkg.m4 (PKG_CHECK_MODULES): Replace AC_TRY_LINK with
> AC_LINK_IFELSE.
> Signed-off-by: Pietro Monteiro <pietro@sociotechnical.xyz>
> ---
> config/pkg.m4 | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/config/pkg.m4 b/config/pkg.m4
> index 7ebf517cd6a..cc15588a05c 100644
> --- a/config/pkg.m4
> +++ b/config/pkg.m4
> @@ -151,7 +151,7 @@ dnl Check whether $pkg_cv_[]$1[]_LIBS works.
> if test $pkg_failed = no; then
> pkg_save_LDFLAGS="$LDFLAGS"
> LDFLAGS="$LDFLAGS $pkg_cv_[]$1[]_LIBS"
> - AC_TRY_LINK([],[], [], [pkg_failed=yes])
> + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[pkg_failed=yes])
> LDFLAGS=$pkg_save_LDFLAGS
> fi
>
> --
> 2.54.0
prev parent reply other threads:[~2026-10-28 22:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-28 22:03 Pietro Monteiro
2026-10-28 22:07 ` Pietro Monteiro [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=29fe9290-0779-4729-b0f9-b56d5b58106b@app.fastmail.com \
--to=pietro@sociotechnical.xyz \
--cc=binutils@sourceware.org \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox