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:
parent
4b5cc8e3bd
commit
93df47f4d5
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user