hdf4: fix build on Apple M1 (#33740)
This commit is contained in:
parent
57f4c922e9
commit
2913f8b42b
11
var/spack/repos/builtin/packages/hdf/hdfi_h_apple_m1.patch
Normal file
11
var/spack/repos/builtin/packages/hdf/hdfi_h_apple_m1.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/hdf/src/hdfi.h 2022-11-07 11:51:28.000000000 -0700
|
||||
+++ b/hdf/src/hdfi.h 2022-11-07 11:51:08.000000000 -0700
|
||||
@@ -1343,7 +1343,7 @@
|
||||
#endif /* IA64 */
|
||||
|
||||
/* Linux AArch64 */
|
||||
-#if defined __aarch64__
|
||||
+#if defined __aarch64__ && ! defined (__APPLE__)
|
||||
|
||||
#ifdef GOT_MACHINE
|
||||
If you get an error on this line more than one machine type has been defined.
|
@ -93,6 +93,8 @@ class Hdf(AutotoolsPackage):
|
||||
sha256="49733dd6143be7b30a28d386701df64a72507974274f7e4c0a9e74205510ea72",
|
||||
when="@4.2.15:",
|
||||
)
|
||||
# https://github.com/NOAA-EMC/spack-stack/issues/317
|
||||
patch("hdfi_h_apple_m1.patch", when="@4.2.15: target=aarch64: platform=darwin")
|
||||
|
||||
@property
|
||||
def libs(self):
|
||||
|
Loading…
Reference in New Issue
Block a user