From 4560b9716ba1e8816cd3c1f44b2f506a394bc22d Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 20 Feb 2024 07:20:22 +0000 Subject: slbt_exec_link_create_executable(): refactor darwin detection logic. --- src/logic/linkcmd/slbt_linkcmd_executable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/logic/linkcmd') 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"; -- cgit v1.2.3