diff options
author | David Seifert <soap@gentoo.org> | 2018-08-28 18:37:19 +0200 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2018-08-28 23:26:08 -0700 |
commit | cc37a66077ca953081d972efcff23969b186a767 (patch) | |
tree | fe7a3bf2c66224243566c41341300e5fe5545326 /test cases | |
parent | 8dd2e42de3cc1be535fcef4bc43f413dff33f20d (diff) | |
download | meson-cc37a66077ca953081d972efcff23969b186a767.zip meson-cc37a66077ca953081d972efcff23969b186a767.tar.gz meson-cc37a66077ca953081d972efcff23969b186a767.tar.bz2 |
Deduplicate build-tree RPATHs on macOS
* Currently, RPATHs coming from dependencies and
`build_rpath` provided by the user might contain
the same path. Apple's `install_name` tool is
allergic to providing the same argument twice
when removing RPATHs:
error: install_name_tool: "-delete_rpath /usr/lib" specified more than once
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/osx/2 library versions/meson.build | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test cases/osx/2 library versions/meson.build b/test cases/osx/2 library versions/meson.build index 3061ed6..acd58a5 100644 --- a/test cases/osx/2 library versions/meson.build +++ b/test cases/osx/2 library versions/meson.build @@ -1,6 +1,12 @@ project('library versions', 'c') +zlib_dep = dependency('zlib') + 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'), + dependencies : zlib_dep, version : '1.2.3', soversion : '0', install : true) |