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()