m4 package: fix OS version check (#11290)

f242f5f removed spec.architecture.platform_os, which was used to test
an option in the 'm4' package. The attribute is now accessed as
'spec.architecture.os'.
This commit is contained in:
George Zagaris 2019-05-13 12:53:23 -07:00 committed by Peter Scheibel
parent f283487670
commit a27f2978b9

View file

@ -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')