summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/librsvg/package.py2
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)