compilers: fix unittest "16 prebuilt shared" on dragonfly bsd

pull/2803/head
Dylan Baker 7 years ago
parent 3b8e65911c
commit 10a560a411
  1. 5
      mesonbuild/compilers/compilers.py
  2. 3
      mesonbuild/mesonlib.py

@ -855,7 +855,10 @@ class Compiler:
paths = padding
else:
paths = paths + ':' + padding
args = ['-Wl,-rpath,' + paths]
args = []
if mesonlib.is_dragonflybsd():
args.append('-Wl,-z,origin')
args.append('-Wl,-rpath,' + paths)
if get_compiler_is_linuxlike(self):
# Rpaths to use while linking must be absolute. These are not
# written to the binary. Needed only with GNU ld:

@ -285,6 +285,9 @@ def is_cygwin():
def is_debianlike():
return os.path.isfile('/etc/debian_version')
def is_dragonflybsd():
return platform.system().lower() == 'dragonfly'
def for_windows(is_cross, env):
"""
Host machine is windows?

Loading…
Cancel
Save