summaryrefslogtreecommitdiffhomepage
path: root/src/logic
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-14 16:58:19 +0000
committermidipix <writeonce@midipix.org>2024-02-14 16:58:19 +0000
commit36d22a5a10939bd29cb7dc3de8d0435a025b55e3 (patch)
tree5a07c4ff5f8923ba1a497315f5fc52a2e891afaa /src/logic
parentd2d5afeab5a5a0eaaef67b602dcea7ca76c74809 (diff)
downloadslibtool-36d22a5a10939bd29cb7dc3de8d0435a025b55e3.tar.bz2
slibtool-36d22a5a10939bd29cb7dc3de8d0435a025b55e3.tar.xz
link mode: darwin support: fix target detection (.flavor, not .host).
Diffstat (limited to 'src/logic')
-rw-r--r--src/logic/linkcmd/slbt_linkcmd_dsolib.c4
-rw-r--r--src/logic/linkcmd/slbt_linkcmd_executable.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/logic/linkcmd/slbt_linkcmd_dsolib.c b/src/logic/linkcmd/slbt_linkcmd_dsolib.c
index a00a8df..f510abe 100644
--- a/src/logic/linkcmd/slbt_linkcmd_dsolib.c
+++ b/src/logic/linkcmd/slbt_linkcmd_dsolib.c
@@ -105,7 +105,7 @@ int slbt_exec_link_create_library(
/* --no-undefined */
if (dctx->cctx->drvflags & SLBT_DRIVER_NO_UNDEFINED)
- *ectx->noundef = !strcmp(dctx->cctx->host.host,"darwin")
+ *ectx->noundef = !strcmp(dctx->cctx->host.flavor,"darwin")
? "-Wl,-undefined,error"
: "-Wl,--no-undefined";
@@ -117,7 +117,7 @@ int slbt_exec_link_create_library(
char wl_soname[24];
- if (!strcmp(dctx->cctx->host.host,"darwin")) {
+ if (!strcmp(dctx->cctx->host.flavor,"darwin")) {
strcpy(wl_soname,"-Wl,-install_name");
} else {
strcpy(wl_soname,"-Wl,-soname");
diff --git a/src/logic/linkcmd/slbt_linkcmd_executable.c b/src/logic/linkcmd/slbt_linkcmd_executable.c
index 449928f..9fd3274 100644
--- a/src/logic/linkcmd/slbt_linkcmd_executable.c
+++ b/src/logic/linkcmd/slbt_linkcmd_executable.c
@@ -116,7 +116,7 @@ int slbt_exec_link_create_executable(
/* --no-undefined */
if (dctx->cctx->drvflags & SLBT_DRIVER_NO_UNDEFINED)
- *ectx->noundef = !strcmp(dctx->cctx->host.host,"darwin")
+ *ectx->noundef = !strcmp(dctx->cctx->host.flavor,"darwin")
? "-Wl,-undefined,error"
: "-Wl,--no-undefined";