summaryrefslogtreecommitdiff
path: root/src/logic/linkcmd
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-20 07:20:22 +0000
committermidipix <writeonce@midipix.org>2024-02-20 07:20:22 +0000
commit4560b9716ba1e8816cd3c1f44b2f506a394bc22d (patch)
treee2f58d870fa95ce2bfd320b88e744fb4c4a73d3e /src/logic/linkcmd
parent82838bee9dd6a5d8922f55f8c4a819fbbfc9b9b8 (diff)
downloadslibtool-4560b9716ba1e8816cd3c1f44b2f506a394bc22d.tar.bz2
slibtool-4560b9716ba1e8816cd3c1f44b2f506a394bc22d.tar.xz
slbt_exec_link_create_executable(): refactor darwin detection logic.
Diffstat (limited to 'src/logic/linkcmd')
-rw-r--r--src/logic/linkcmd/slbt_linkcmd_executable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logic/linkcmd/slbt_linkcmd_executable.c b/src/logic/linkcmd/slbt_linkcmd_executable.c
index 6ad6994..fb77acf 100644
--- a/src/logic/linkcmd/slbt_linkcmd_executable.c
+++ b/src/logic/linkcmd/slbt_linkcmd_executable.c
@@ -118,7 +118,7 @@ slbt_hidden int slbt_exec_link_create_executable(
/* --no-undefined */
if (dctx->cctx->drvflags & SLBT_DRIVER_NO_UNDEFINED)
- *ectx->noundef = !strcmp(dctx->cctx->host.flavor,"darwin")
+ *ectx->noundef = slbt_host_group_is_darwin(dctx)
? "-Wl,-undefined,error"
: "-Wl,--no-undefined";