summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToyohisa Kameyama <kameyama@riken.jp>2020-09-10 23:59:18 +0900
committerGitHub <noreply@github.com>2020-09-10 09:59:18 -0500
commit34f4049815b262a953116dea00ab12f3a24c80dc (patch)
tree3cda5f6460a5d727be98aeaf0479974bbe50f104
parente13e2b0d54b61bc0d47d71eb17c7d79d3ce4d5e5 (diff)
downloadspack-34f4049815b262a953116dea00ab12f3a24c80dc.tar.gz
spack-34f4049815b262a953116dea00ab12f3a24c80dc.tar.bz2
spack-34f4049815b262a953116dea00ab12f3a24c80dc.tar.xz
spack-34f4049815b262a953116dea00ab12f3a24c80dc.zip
dpdk: Avoid option conflicts between spack wrappers and Makefiles on aarch64 gcc. (#18603)
-rw-r--r--var/spack/repos/builtin/packages/dpdk/package.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/dpdk/package.py b/var/spack/repos/builtin/packages/dpdk/package.py
index c25b32c8d7..b01c41be84 100644
--- a/var/spack/repos/builtin/packages/dpdk/package.py
+++ b/var/spack/repos/builtin/packages/dpdk/package.py
@@ -21,6 +21,14 @@ class Dpdk(MakefilePackage):
depends_on('numactl')
+ @when('%gcc target=aarch64:')
+ def patch(self):
+ filter_file(
+ r'^MACHINE_CFLAGS',
+ '#MACHINE_CFLAGS',
+ join_path('mk', 'machine', 'armv8a', 'rte.vars.mk')
+ )
+
def build(self, spec, prefix):
make('defconfig')
make()