From: Paul Floyd Date: Wed, 27 Apr 2022 19:10:35 +0000 (+0200) Subject: Bug 452779 Valgrind fails to build on FreeBSD 13.0 with llvm-devel (15.0.0) X-Git-Tag: VALGRIND_3_20_0~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6af21da952bbf233352603de87a6009f4ef0f02b;p=thirdparty%2Fvalgrind.git Bug 452779 Valgrind fails to build on FreeBSD 13.0 with llvm-devel (15.0.0) Only link with libgcc-sup if the compiler is clang. Still need -lgcc --- diff --git a/Makefile.tool.am b/Makefile.tool.am index 5ce32d9c35..df95029138 100644 --- a/Makefile.tool.am +++ b/Makefile.tool.am @@ -18,13 +18,20 @@ endif TOOL_LDADD_COMMON = -lgcc TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@ = \ - $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@) $(TOOL_LDADD_COMMON) \ - $(top_builddir)/coregrind/libgcc-sup-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a + $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@) $(TOOL_LDADD_COMMON) if VGCONF_HAVE_PLATFORM_SEC TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@ = \ - $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@) $(TOOL_LDADD_COMMON) \ + $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@) $(TOOL_LDADD_COMMON) +endif + +if !COMPILER_IS_CLANG +TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@ += \ + $(top_builddir)/coregrind/libgcc-sup-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a +if VGCONF_HAVE_PLATFORM_SEC +TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@ += \ $(top_builddir)/coregrind/libgcc-sup-@VGCONF_ARCH_SEC@-@VGCONF_OS@.a endif +endif # -Wl,--build-id=none is needed when linking tools with a linker that only diff --git a/NEWS b/NEWS index 480761bb22..a42ec24f25 100644 --- a/NEWS +++ b/NEWS @@ -36,6 +36,7 @@ than mailing the developers (or mailing lists) directly -- bugs that are not entered into bugzilla tend to get forgotten about or ignored. 452274 memcheck crashes with Assertion 'sci->status.what == SsIdle' failed +452779 Valgrind fails to build on FreeBSD 13.0 with llvm-devel (15.0.0) To see details of a given bug, visit https://bugs.kde.org/show_bug.cgi?id=XXXXXX