summaryrefslogtreecommitdiff
path: root/src/driver
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-13 21:33:14 +0000
committermidipix <writeonce@midipix.org>2024-03-13 21:34:36 +0000
commitb48cb77c5fe44e3392ecb9f4335c6a9b7401c89d (patch)
treebaa2e81b290a5c3ba91eb693b1ebd0950ccc809a /src/driver
parent198205f4097928184ed5bfa288bb4dfbba1e2b5f (diff)
downloadslibtool-b48cb77c5fe44e3392ecb9f4335c6a9b7401c89d.tar.bz2
slibtool-b48cb77c5fe44e3392ecb9f4335c6a9b7401c89d.tar.xz
link mode: properly interpret -static when output is an executable program.
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/slbt_driver_ctx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 6737815..9479e54 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -788,10 +788,12 @@ int slbt_lib_get_driver_ctx(
case TAG_SHARED:
cmdshared = entry;
+ cctx.drvflags |= SLBT_DRIVER_PREFER_SHARED;
break;
case TAG_STATIC:
cmdstatic = entry;
+ cctx.drvflags |= SLBT_DRIVER_PREFER_STATIC;
break;
case TAG_WEAK: