diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/parquet/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/parquet/package.py b/var/spack/repos/builtin/packages/parquet/package.py index cca8b8eab1..ce683895f6 100644 --- a/var/spack/repos/builtin/packages/parquet/package.py +++ b/var/spack/repos/builtin/packages/parquet/package.py @@ -21,6 +21,8 @@ class Parquet(CMakePackage): depends_on('pkgconfig', type='build') depends_on('thrift+pic') + variant('pic', default=True, + description='Build position independent code') variant('build_type', default='Release', description='CMake build type', values=('Debug', 'FastDebug', 'Release')) @@ -31,3 +33,9 @@ class Parquet(CMakePackage): args.append("-D{0}_HOME={1}".format(dep.upper(), self.spec[dep].prefix)) return args + + def flag_handler(self, name, flags): + flags = list(flags) + if '+pic' in self.spec and name in ('cflags', 'cxxflags'): + flags.append(self.compiler.pic_flag) + return (None, None, flags) |