forked from lix-project/lix
meson: perl bindings: ld64 doesn't have soname Qyriad
This commit is contained in:
parent
8f1cc1b8c9
commit
3a11a23965
|
@ -10,6 +10,11 @@ store_xs_cpp = custom_target(
|
|||
build_by_default : true,
|
||||
)
|
||||
|
||||
soname_args = []
|
||||
if cxx.get_linker_id() in ['ld.bfd', 'ld.gold']
|
||||
soname_args = ['-Wl,-soname=Store.so']
|
||||
endif
|
||||
|
||||
perl_libstore = shared_module(
|
||||
'Store',
|
||||
store_xs_cpp,
|
||||
|
@ -24,7 +29,7 @@ perl_libstore = shared_module(
|
|||
link_args : [
|
||||
# Nix doesn't provide a pkg-config file for libutil.
|
||||
'-lnixutil',
|
||||
'-Wl,-soname=Store.so',
|
||||
soname_args,
|
||||
],
|
||||
install : true,
|
||||
install_dir : perl_libdir / 'auto/Nix/Store',
|
||||
|
|
Loading…
Reference in a new issue