diff options
author | Sergey Kosukhin <skosukhin@gmail.com> | 2016-10-06 10:43:34 +0100 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-10-06 02:43:34 -0700 |
commit | 92ca6d64239186c269430b9bf6aa81bc2ecf904e (patch) | |
tree | ad86aaea7e3897634c22662392ca638842d5ff8c /var | |
parent | 4cce23ea89512536a7577daa87c3714d710109b7 (diff) | |
download | spack-92ca6d64239186c269430b9bf6aa81bc2ecf904e.tar.gz spack-92ca6d64239186c269430b9bf6aa81bc2ecf904e.tar.bz2 spack-92ca6d64239186c269430b9bf6aa81bc2ecf904e.tar.xz spack-92ca6d64239186c269430b9bf6aa81bc2ecf904e.zip |
Update pixman: mmx is disabled only for MacOS. (#1896)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/pixman/package.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/pixman/package.py b/var/spack/repos/builtin/packages/pixman/package.py index 41aad0c90a..8fe3e1f9d9 100644 --- a/var/spack/repos/builtin/packages/pixman/package.py +++ b/var/spack/repos/builtin/packages/pixman/package.py @@ -23,6 +23,7 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ############################################################################## from spack import * +import sys class Pixman(Package): @@ -38,8 +39,13 @@ class Pixman(Package): depends_on("libpng") def install(self, spec, prefix): - configure("--prefix=%s" % prefix, - "--disable-mmx", - "--disable-gtk") + config_args = ["--prefix=" + prefix, + "--disable-gtk"] + + if sys.platform == "darwin": + config_args.append("--disable-mmx") + + configure(*config_args) + make() make("install") |