applgrid: fix aarch64-linux build

Assisted-by: Claude:opus-4.7
This commit is contained in:
Sam Estep
2026-05-22 23:59:50 -04:00
parent 2977d737de
commit bc93fb2af4
2 changed files with 18 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
--- a/configure
+++ b/configure
@@ -16130,7 +16130,6 @@
$as_echo "$as_me: WARNING: ****************************************************************" >&2;}
fi
-( echo $CXXFLAGS | grep -q "m64" ) || CXXFLAGS+=" -m64 "
+8
View File
@@ -19,6 +19,14 @@ stdenv.mkDerivation (finalAttrs: {
};
patches = [
# Upstream's configure unconditionally injects `-m64` into CXXFLAGS, which is
# invalid on aarch64 (and redundant on x86_64). The line was added in r1946
# for applgrid 1.6.17 with the commit message "add default m64 compilation".
# There is no public bug tracker upstream, and the line is still present in
# trunk. We patch only the generated `configure` (not `configure.ac`) so
# that make doesn't try to re-run autotools during the build.
./no-m64.patch
# ROOT 6.40 made rootcling fail when no selection rules are provided
# (https://root.cern/doc/v640/release-notes.html#core-libraries). The patch
# appends $*LinkDef.h to the dictionary pattern rule so rootcint picks up