diff options
author | Bernhard Kaindl <43588962+bernhardkaindl@users.noreply.github.com> | 2021-10-09 13:10:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-09 13:10:13 +0200 |
commit | 93df47f4d520ee0778f35ec3208d6fe5e6365f5e (patch) | |
tree | 6f84af924ec670b2b6c44a7a3a941df3b1bceb58 /var | |
parent | 4b5cc8e3bddda4ce3bd459459e52ee95a6e0806e (diff) | |
download | spack-93df47f4d520ee0778f35ec3208d6fe5e6365f5e.tar.gz spack-93df47f4d520ee0778f35ec3208d6fe5e6365f5e.tar.bz2 spack-93df47f4d520ee0778f35ec3208d6fe5e6365f5e.tar.xz spack-93df47f4d520ee0778f35ec3208d6fe5e6365f5e.zip |
librsvg: fix build when does not use -pthread for linking (#26592)
librsvg uses pthread_atfork() but does not use -pthread on Ubuntu 18.04 %gcc@8
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/librsvg/package.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/librsvg/package.py b/var/spack/repos/builtin/packages/librsvg/package.py index edf246d52c..7351e56cb3 100644 --- a/var/spack/repos/builtin/packages/librsvg/package.py +++ b/var/spack/repos/builtin/packages/librsvg/package.py @@ -43,6 +43,8 @@ class Librsvg(AutotoolsPackage): def setup_build_environment(self, env): env.prepend_path('XDG_DATA_DIRS', self.prefix.share) + # librsvg uses pthread_atfork() but does not use -pthread on Ubuntu 18.04 %gcc@8 + env.append_flags('LDFLAGS', '-pthread') def setup_run_environment(self, env): env.prepend_path('XDG_DATA_DIRS', self.prefix.share) |