summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2023-03-20 02:14:00 -0600
committerGitHub <noreply@github.com>2023-03-20 09:14:00 +0100
commit75714d30f59ea0a77a9303869650df43df1cc341 (patch)
tree0477f6cd6501dc51836dc3cfba5b05d62a527376
parentd5e30ac5f11edcd7db103c412e3d6472939558b3 (diff)
downloadspack-75714d30f59ea0a77a9303869650df43df1cc341.tar.gz
spack-75714d30f59ea0a77a9303869650df43df1cc341.tar.bz2
spack-75714d30f59ea0a77a9303869650df43df1cc341.tar.xz
spack-75714d30f59ea0a77a9303869650df43df1cc341.zip
gawk: fix build on Apple Silicon (#36246)
-rw-r--r--var/spack/repos/builtin/packages/gawk/package.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/gawk/package.py b/var/spack/repos/builtin/packages/gawk/package.py
index 4740247d1a..56455d67f7 100644
--- a/var/spack/repos/builtin/packages/gawk/package.py
+++ b/var/spack/repos/builtin/packages/gawk/package.py
@@ -53,4 +53,10 @@ class Gawk(AutotoolsPackage, GNUMirrorPackage):
return match.group(1) if match else None
def configure_args(self):
- return self.enable_or_disable("nls")
+ args = self.enable_or_disable("nls")
+
+ # https://github.com/Homebrew/homebrew-core/blob/5b93511fd6b87789871e30c9fe0790949bd6634c/Formula/gawk.rb#L38,L42
+ if self.spec.satisfies("platform=darwin target=aarch64:"):
+ args.append("--disable-pma")
+
+ return args