aboutsummaryrefslogtreecommitdiff
path: root/winsup/utils
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2023-02-01 15:08:16 +0100
committerCorinna Vinschen <corinna@vinschen.de>2023-02-01 20:00:01 +0100
commit89f930a9649ed9e419c7d8b2372c684313069a5b (patch)
tree343bcac51a622c6e59e60286ea751a43decee760 /winsup/utils
parent3a4c740f59c03b4c8346fa0ee8599b1c0582ae96 (diff)
downloadnewlib-89f930a9649ed9e419c7d8b2372c684313069a5b.zip
newlib-89f930a9649ed9e419c7d8b2372c684313069a5b.tar.gz
newlib-89f930a9649ed9e419c7d8b2372c684313069a5b.tar.bz2
dumper: avoid linker problem when `libbfd` depends on `libsframe`
A recent binutils version introduced `libsframe` and made it a dependency of `libbfd`. This caused a linker problem in the MSYS2 project, and once Cygwin upgrades to that binutils version it would cause the same problems there. Let's preemptively detect the presence of `libsframe` and if detected, link to it in addition to `libbfd`. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'winsup/utils')
-rw-r--r--winsup/utils/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/utils/Makefile.am b/winsup/utils/Makefile.am
index d4d5638..f59cf9f 100644
--- a/winsup/utils/Makefile.am
+++ b/winsup/utils/Makefile.am
@@ -89,6 +89,10 @@ profiler_LDADD = $(LDADD) -lntdll
cygps_LDADD = $(LDADD) -lpsapi -lntdll
newgrp_LDADD = $(LDADD) -luserenv
+if HAVE_LIBSFRAME
+dumper_LDADD += -lsframe
+endif
+
if CROSS_BOOTSTRAP
SUBDIRS = mingw
endif