summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-14 13:28:49 +0000
committermidipix <writeonce@midipix.org>2024-02-14 13:28:49 +0000
commitd2d5afeab5a5a0eaaef67b602dcea7ca76c74809 (patch)
tree942305fa051827936e9e86507b2c4f6120e73b8a /src
parent20bc88f1267c1407eceacc81216ad122005dc8c0 (diff)
downloadslibtool-d2d5afeab5a5a0eaaef67b602dcea7ca76c74809.tar.bz2
slibtool-d2d5afeab5a5a0eaaef67b602dcea7ca76c74809.tar.xz
link mode: finalize support of darwin's syntax for the -no-undefined switch.
Diffstat (limited to 'src')
-rw-r--r--src/logic/linkcmd/slbt_linkcmd_executable.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/logic/linkcmd/slbt_linkcmd_executable.c b/src/logic/linkcmd/slbt_linkcmd_executable.c
index cbb6ffe..449928f 100644
--- a/src/logic/linkcmd/slbt_linkcmd_executable.c
+++ b/src/logic/linkcmd/slbt_linkcmd_executable.c
@@ -116,7 +116,9 @@ int slbt_exec_link_create_executable(
/* --no-undefined */
if (dctx->cctx->drvflags & SLBT_DRIVER_NO_UNDEFINED)
- *ectx->noundef = "-Wl,--no-undefined";
+ *ectx->noundef = !strcmp(dctx->cctx->host.host,"darwin")
+ ? "-Wl,-undefined,error"
+ : "-Wl,--no-undefined";
/* executable wrapper: create */
if (slbt_snprintf(wrapper,sizeof(wrapper),