diff options
author | snehring <snehring@users.noreply.github.com> | 2021-12-17 10:14:44 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-17 17:14:44 +0100 |
commit | 10ccbc9a2c4676787f34c527057f6c8980afc2d9 (patch) | |
tree | dbfaa6d164cb16d66f103ffe072d18f792f1d1bf | |
parent | bbe69aa7255f1f6212b89ceaa8c1a9ff7e6b084a (diff) | |
download | spack-10ccbc9a2c4676787f34c527057f6c8980afc2d9.tar.gz spack-10ccbc9a2c4676787f34c527057f6c8980afc2d9.tar.bz2 spack-10ccbc9a2c4676787f34c527057f6c8980afc2d9.tar.xz spack-10ccbc9a2c4676787f34c527057f6c8980afc2d9.zip |
bridger: fixing issues with newer compilers (#28008)
-rw-r--r-- | var/spack/repos/builtin/packages/bridger/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/bridger/package.py b/var/spack/repos/builtin/packages/bridger/package.py index 769debf525..d9b676ef81 100644 --- a/var/spack/repos/builtin/packages/bridger/package.py +++ b/var/spack/repos/builtin/packages/bridger/package.py @@ -20,6 +20,14 @@ class Bridger(MakefilePackage, SourceforgePackage): depends_on('boost') depends_on('perl', type='run') + def flag_handler(self, name, flags): + if name == 'cflags': + # some of the plugins require gnu extensions + flags.append('-std=gnu99') + if name == 'cxxflags': + flags.append('-std=c++03') + return (flags, None, None) + def install(self, spec, prefix): # bridger depends very much on perl scripts/etc in the source tree install_path = join_path(prefix, 'usr/local/bridger') |