[ghex: 1/3] meson: check if linker supports --no-undefined
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ghex: 1/3] meson: check if linker supports --no-undefined
- Date: Sun, 14 Jul 2019 18:08:22 +0000 (UTC)
commit b0af26666cd990d99076c242b2abb3efc6e98671
Author: Tom Schoonjans <Tom Schoonjans diamond ac uk>
Date: Sat Jul 13 16:02:26 2019 +0200
meson: check if linker supports --no-undefined
macOS linkers do not support the --no-undefined argument, so a check
is necessary before passing it.
src/meson.build | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/meson.build b/src/meson.build
index fdcdcc2..fef9cb8 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -23,9 +23,9 @@ libghex_c_args = [
'-DG_LOG_DOMAIN="libgtkhex-3"'
]
-libghex_link_args = [
+libghex_link_args = cc.get_supported_link_arguments([
'-Wl,--no-undefined'
-]
+])
install_headers(
libghex_headers,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]