From: Paul Floyd Date: Fri, 12 Apr 2024 10:50:07 +0000 (+0200) Subject: linux arm64: fix build with clang X-Git-Tag: VALGRIND_3_23_0~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=daade431cafad51c0b5411a71b34323ab289bc56;p=thirdparty%2Fvalgrind.git linux arm64: fix build with clang Same issue as https://bugs.kde.org/show_bug.cgi?id=421321 but with clang. --- diff --git a/Makefile.tool.am b/Makefile.tool.am index 4ce6d5ab0..8923ea6ab 100644 --- a/Makefile.tool.am +++ b/Makefile.tool.am @@ -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