diff --git a/var/spack/repos/builtin/packages/m4/package.py b/var/spack/repos/builtin/packages/m4/package.py index ad180b15a8..71ed3d1da4 100644 --- a/var/spack/repos/builtin/packages/m4/package.py +++ b/var/spack/repos/builtin/packages/m4/package.py @@ -51,7 +51,7 @@ def configure_args(self): # http://lists.gnu.org/archive/html/bug-m4/2016-09/msg00002.html arch = spec.architecture - if (arch.platform == 'darwin' and arch.platform_os == 'sierra' and + if (arch.platform == 'darwin' and arch.os == 'sierra' and '%gcc' in spec): args.append('ac_cv_type_struct_sched_param=yes')