summaryrefslogtreecommitdiff
path: root/package/elfutils/patches/patch-configure_ac
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2025-01-09 11:48:24 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2025-01-09 11:50:56 +0100
commit12db3c8436211c587cc8d8249482cad48a06fbfe (patch)
tree436a7fa13e8088b6341f5418e2718c445ccc9741 /package/elfutils/patches/patch-configure_ac
parent56cd779a7a48465714d69b4a22ae66ee894b15ce (diff)
use elfutils systemwide
libelf is deprecated and does not build with gcc-14. Use elfutils instead as drop-in replacement. Add patches from Buildroot to disable progs, which use glibc specific functions.
Diffstat (limited to 'package/elfutils/patches/patch-configure_ac')
-rw-r--r--package/elfutils/patches/patch-configure_ac24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/elfutils/patches/patch-configure_ac b/package/elfutils/patches/patch-configure_ac
new file mode 100644
index 000000000..40b65da79
--- /dev/null
+++ b/package/elfutils/patches/patch-configure_ac
@@ -0,0 +1,24 @@
+--- elfutils-0.189.orig/configure.ac 2023-03-03 16:42:26.000000000 +0100
++++ elfutils-0.189/configure.ac 2025-01-08 20:12:14.302360288 +0100
+@@ -422,6 +422,12 @@ AS_HELP_STRING([--enable-tests-rpath],[b
+ [tests_use_rpath=$enableval], [tests_use_rpath=no])
+ AM_CONDITIONAL(TESTS_RPATH, test "$tests_use_rpath" = yes)
+
++AC_ARG_ENABLE([progs],
++ AS_HELP_STRING([--enable-progs], [enable progs]),
++ enable_progs=$enableval,
++ enable_progs=yes)
++AM_CONDITIONAL(ENABLE_PROGS, test "$enable_progs" = yes)
++
+ dnl zlib is mandatory.
+ save_LIBS="$LIBS"
+ LIBS=
+@@ -659,7 +665,7 @@ saved_LIBS="$LIBS"
+ AC_SEARCH_LIBS([_obstack_free], [obstack])
+ LIBS="$saved_LIBS"
+ case "$ac_cv_search__obstack_free" in
+- no) AC_MSG_FAILURE([failed to find _obstack_free]) ;;
++ no) obstack_LIBS= ;;
+ -l*) obstack_LIBS="$ac_cv_search__obstack_free" ;;
+ *) obstack_LIBS= ;;
+ esac