diff options
author | midipix <writeonce@midipix.org> | 2024-02-20 07:18:06 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-02-20 07:18:06 +0000 |
commit | 82838bee9dd6a5d8922f55f8c4a819fbbfc9b9b8 (patch) | |
tree | 038fc95ffeadef764f93bc5573e933ad3a9d84d9 /src/logic | |
parent | cdc3c6697af08d485e5a56952549b9e94e020396 (diff) | |
download | slibtool-82838bee9dd6a5d8922f55f8c4a819fbbfc9b9b8.tar.bz2 slibtool-82838bee9dd6a5d8922f55f8c4a819fbbfc9b9b8.tar.xz |
slbt_exec_link_create_library(): refactor darwin detection logic.
Diffstat (limited to 'src/logic')
-rw-r--r-- | src/logic/linkcmd/slbt_linkcmd_dsolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
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"); |