Open ePirat opened 6 years ago
This is probably because the part that chooses which form of rpaths to use detects the macosness correctly with Clang but not with GCC. This is probably because no-one has used this combination. This should be fairly easy to test by grepping the compiler source files for rpath
and CLANG_OSX
, seeing where the choice is done and extending the detection logic to handle GCC_OSX
too.
I've checked and in the current master at least this is done by:
def is_osx_compiler(self):
return self.name in ('GCC_OSX', 'CLANG_OSX', 'ICC_OSX')
so it should work unless meson somehow fails to detect the compiler as gcc…
Please test again, I specifically recall fixing GCC and ICC for the 0.48 release.
On macOS, when building dav1d with meson 0.47.2, with gcc-mp-8 as compiler, it passes the wrong rpath to the linker:
Important part from the above is
'-Wl,-rpath,$ORIGIN/../src'
which is not a valid rpath.