* [PATCH] config: Sync pkg.m4 from GCC
@ 2026-10-28 22:03 Pietro Monteiro
2026-10-28 22:07 ` Pietro Monteiro
0 siblings, 1 reply; 2+ messages in thread
From: Pietro Monteiro @ 2026-10-28 22:03 UTC (permalink / raw)
To: binutils, gdb-patches; +Cc: Pietro Monteiro
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
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] config: Sync pkg.m4 from GCC
2026-10-28 22:03 [PATCH] config: Sync pkg.m4 from GCC Pietro Monteiro
@ 2026-10-28 22:07 ` Pietro Monteiro
0 siblings, 0 replies; 2+ messages in thread
From: Pietro Monteiro @ 2026-10-28 22:07 UTC (permalink / raw)
To: binutils, gdb-patches
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-10-28 22:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-28 22:03 [PATCH] config: Sync pkg.m4 from GCC Pietro Monteiro
2026-10-28 22:07 ` Pietro Monteiro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox