diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2019-12-17 01:35:37 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-12-17 15:10:13 +0200 |
commit | 58999cad913681f5f1ad434a0409fa3019794cfb (patch) | |
tree | 7ca7815188e77215f080f4d653a5eef2f719a9b7 | |
parent | 585ccfc78922393a375160ee3d994ddfcd716f6a (diff) | |
download | meson-58999cad913681f5f1ad434a0409fa3019794cfb.zip meson-58999cad913681f5f1ad434a0409fa3019794cfb.tar.gz meson-58999cad913681f5f1ad434a0409fa3019794cfb.tar.bz2 |
Fix macOS library test when using system zlib.
-rw-r--r-- | test cases/osx/2 library versions/meson.build | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test cases/osx/2 library versions/meson.build b/test cases/osx/2 library versions/meson.build index 0d21a3a..5420133 100644 --- a/test cases/osx/2 library versions/meson.build +++ b/test cases/osx/2 library versions/meson.build @@ -8,10 +8,11 @@ endif zlib_dep = dependency('zlib', required: required) if zlib_dep.found() + build_rpath = zlib_dep.type_name() == 'pkgconfig' ? zlib_dep.get_pkgconfig_variable('libdir') : 'lib' some = shared_library('some', 'lib.c', # duplicate the rpath again, in order # to test Meson's RPATH deduplication - build_rpath : zlib_dep.get_pkgconfig_variable('libdir'), + build_rpath : build_rpath, dependencies : zlib_dep, version : '1.2.3', soversion : '7', |