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
This commit is contained in:
Bernhard Kaindl 2021-10-09 13:10:13 +02:00 committed by GitHub
parent 4b5cc8e3bd
commit 93df47f4d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,6 +43,8 @@ def setup_dependent_run_environment(self, env, dependent_spec):
def setup_build_environment(self, env): def setup_build_environment(self, env):
env.prepend_path('XDG_DATA_DIRS', self.prefix.share) 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): def setup_run_environment(self, env):
env.prepend_path('XDG_DATA_DIRS', self.prefix.share) env.prepend_path('XDG_DATA_DIRS', self.prefix.share)