]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Bug 452779 Valgrind fails to build on FreeBSD 13.0 with llvm-devel (15.0.0)
authorPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 27 Apr 2022 19:10:35 +0000 (21:10 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 27 Apr 2022 19:10:35 +0000 (21:10 +0200)
Only link with libgcc-sup if the compiler is clang.
Still need -lgcc

Makefile.tool.am
NEWS

index 5ce32d9c35f253f84805b5b6151b34a2455bbddc..df95029138347748f966792176b3d3001ed86023 100644 (file)
@@ -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 480761bb22444ea77b3eeb291fd40cc09b5ef029..a42ec24f25add40e8ac1d912e1a2fc3c56584b53 100644 (file)
--- 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