From 82838bee9dd6a5d8922f55f8c4a819fbbfc9b9b8 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 20 Feb 2024 07:18:06 +0000 Subject: slbt_exec_link_create_library(): refactor darwin detection logic. --- src/logic/linkcmd/slbt_linkcmd_dsolib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/logic') diff --git a/src/logic/linkcmd/slbt_linkcmd_dsolib.c b/src/logic/linkcmd/slbt_linkcmd_dsolib.c index 938c0ef..ac36f06 100644 --- a/src/logic/linkcmd/slbt_linkcmd_dsolib.c +++ b/src/logic/linkcmd/slbt_linkcmd_dsolib.c @@ -107,7 +107,7 @@ slbt_hidden int slbt_exec_link_create_library( /* --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"; @@ -119,7 +119,7 @@ slbt_hidden int slbt_exec_link_create_library( char wl_soname[24]; - if (!strcmp(dctx->cctx->host.flavor,"darwin")) { + if (slbt_host_group_is_darwin(dctx)) { strcpy(wl_soname,"-Wl,-install_name"); } else { strcpy(wl_soname,"-Wl,-soname"); -- cgit v1.2.3