summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2016-10-11 10:19:12 +0200
committerTodd Gamblin <tgamblin@llnl.gov>2016-10-11 01:19:12 -0700
commit907546b55e5cf6a43facfb53028c2e7b21480e7a (patch)
treee096d96d5cf0c428c8d7085f7e3d6f705e8a764d /var
parent9e7f53a35abd788588b8f4cce72aa3efe06f7791 (diff)
downloadspack-907546b55e5cf6a43facfb53028c2e7b21480e7a.tar.gz
spack-907546b55e5cf6a43facfb53028c2e7b21480e7a.tar.bz2
spack-907546b55e5cf6a43facfb53028c2e7b21480e7a.tar.xz
spack-907546b55e5cf6a43facfb53028c2e7b21480e7a.zip
libcerf: fix for modern clang (#1959)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libcerf/package.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/libcerf/package.py b/var/spack/repos/builtin/packages/libcerf/package.py
index 7fb47f8dcd..1964f03b95 100644
--- a/var/spack/repos/builtin/packages/libcerf/package.py
+++ b/var/spack/repos/builtin/packages/libcerf/package.py
@@ -38,6 +38,12 @@ class Libcerf(Package):
version('1.3', 'b3504c467204df71e62aeccf73a25612')
def install(self, spec, prefix):
- configure('--prefix=%s' % prefix)
+ options = []
+ # Clang reports unused functions as errors, see
+ # http://clang.debian.net/status.php?version=3.8.1&key=UNUSED_FUNCTION
+ if spec.satisfies('%clang'):
+ options.append('CFLAGS=-Wno-unused-function')
+
+ configure('--prefix=%s' % prefix, *options)
make()
make("install")