summaryrefslogtreecommitdiffstats
path: root/libuuid/meson.build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 19:22:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 19:22:58 +0000
commit764402d8b945f7abbfa5f68a6d16c94c635f7ffe (patch)
treef04a9feedef2357ee3aa9b9eef439447f76f14c3 /libuuid/meson.build
parentAdding debian version 2.40-8. (diff)
downloadutil-linux-764402d8b945f7abbfa5f68a6d16c94c635f7ffe.tar.xz
util-linux-764402d8b945f7abbfa5f68a6d16c94c635f7ffe.zip
Merging upstream version 2.40.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'libuuid/meson.build')
-rw-r--r--libuuid/meson.build12
1 files changed, 10 insertions, 2 deletions
diff --git a/libuuid/meson.build b/libuuid/meson.build
index a801b4e..b67b3d5 100644
--- a/libuuid/meson.build
+++ b/libuuid/meson.build
@@ -20,6 +20,14 @@ unparse_c = files('src/unparse.c')
libuuid_sym = 'src/libuuid.sym'
libuuid_sym_path = '@0@/@1@'.format(meson.current_source_dir(), libuuid_sym)
+libuuid_link_depends = []
+libuuid_link_args = []
+
+if cc.has_link_argument('-Wl,--version-script=@0@'.format(libuuid_sym_path))
+ libuuid_link_depends += [libuuid_sym]
+ libuuid_link_args += ['-Wl,--version-script=@0@'.format(libuuid_sym_path)]
+endif
+
lib_uuid = both_libraries(
'uuid',
list_h,
@@ -31,9 +39,9 @@ lib_uuid = both_libraries(
md5_c,
sha1_c,
include_directories : [dir_include, dir_libuuid],
- link_depends : libuuid_sym,
+ link_depends : libuuid_link_depends,
version : libuuid_version,
- link_args : ['-Wl,--version-script=@0@'.format(libuuid_sym_path)],
+ link_args : libuuid_link_args,
dependencies : [socket_libs,
build_libuuid ? [] : disabler()],
install : build_libuuid)