summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2016-09-23 22:38:29 +0200
committerTodd Gamblin <tgamblin@llnl.gov>2016-09-23 13:38:29 -0700
commit6ef6428331db023cc8f7af2ca5ff86ab488ad777 (patch)
treed3e114ed44eb6d7cbb6d75027b59998fbca03a2b
parent98d54182d3c5bdea7febf1114bc83f4464f3097a (diff)
downloadspack-6ef6428331db023cc8f7af2ca5ff86ab488ad777.tar.gz
spack-6ef6428331db023cc8f7af2ca5ff86ab488ad777.tar.bz2
spack-6ef6428331db023cc8f7af2ca5ff86ab488ad777.tar.xz
spack-6ef6428331db023cc8f7af2ca5ff86ab488ad777.zip
m4: fix compilation on Sierra with GCC (#1844)
* m4: fix compilation on Sierra with GCC * m4: check macOS version
-rw-r--r--var/spack/repos/builtin/packages/m4/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/m4/package.py b/var/spack/repos/builtin/packages/m4/package.py
index b3bb5e61ce..f7150727fe 100644
--- a/var/spack/repos/builtin/packages/m4/package.py
+++ b/var/spack/repos/builtin/packages/m4/package.py
@@ -23,6 +23,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
from spack import *
+import sys
class M4(Package):
@@ -47,6 +48,11 @@ class M4(Package):
else:
configure_args.append('--without-libsigsegv-prefix')
+ # http://lists.gnu.org/archive/html/bug-m4/2016-09/msg00002.html
+ if (sys.platform == "darwin") and (spec.satisfies('%gcc')) and \
+ (spec.architecture.platform_os.version == "10.12"):
+ configure_args.append('ac_cv_type_struct_sched_param=yes')
+
configure("--prefix=%s" % prefix, *configure_args)
make()
make("install")