]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
linux arm64: fix build with clang
authorPaul Floyd <pjfloyd@wanadoo.fr>
Fri, 12 Apr 2024 10:50:07 +0000 (12:50 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Fri, 12 Apr 2024 17:40:37 +0000 (19:40 +0200)
Same issue as https://bugs.kde.org/show_bug.cgi?id=421321
but with clang.

Makefile.tool.am

index 4ce6d5ab0d435c79692d5fec9e23abfd8c089a44..8923ea6ab4c049cd11df36a82e6f64b930ef3504 100644 (file)
@@ -31,8 +31,16 @@ if VGCONF_HAVE_PLATFORM_SEC
 TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@ += \
        $(top_builddir)/coregrind/libgcc-sup-@VGCONF_ARCH_SEC@-@VGCONF_OS@.a
 endif
+else
+if VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX
+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
 endif
-
 
 # -Wl,--build-id=none is needed when linking tools with a linker that only
 # knows -Ttext and not -Ttext-segment. Without this flag newer ld versions