tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
devel/valgrind: patch to enable aarch64
I've made a local change to build Valgrind on aarch64. Sharing here the diff for the Makefile and hoping for the best:
devel/valgrind$ cvs diff -u Makefile
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/valgrind/Makefile,v
retrieving revision 1.38
diff -u -r1.38 Makefile
--- Makefile 11 Aug 2023 08:45:47 -0000 1.38
+++ Makefile 4 Dec 2024 04:35:35 -0000
@@ -18,7 +18,7 @@
ONLY_FOR_PLATFORM+= Darwin-[0-9].*-i386 Darwin-[0-9].*-x86_64
ONLY_FOR_PLATFORM+= Darwin-1[0-7].*-i386 Darwin-1[0-7].*-x86_64
ONLY_FOR_PLATFORM+= FreeBSD-*-x86_64 FreeBSD-*-i386
-ONLY_FOR_PLATFORM+= Linux-*-x86_64 Linux-*-i386 Linux-*-arm*
+ONLY_FOR_PLATFORM+= Linux-*-x86_64 Linux-*-i386 Linux-*-arm* Linux-*-aarch64
ONLY_FOR_PLATFORM+= SunOS-*-i386 SunOS-*-x86_64
USE_TOOLS+= gmake perl:run
@@ -37,6 +37,10 @@
PLIST_SUBST+= VGCONF_ARCH_PRI=arm
.endif
+.if ${MACHINE_ARCH} == "aarch64"
+PLIST_SUBST+= VGCONF_ARCH_PRI=arm64
+.endif
+
.if ${MACHINE_ARCH} == "i386"
PLIST_SUBST+= VGCONF_ARCH_PRI=x86
.endif
Home |
Main Index |
Thread Index |
Old Index