summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2025-05-03 20:56:58 +0000
committermidipix <writeonce@midipix.org>2025-05-03 20:56:58 +0000
commit51d8f459e74111c81b2d62cf9f581cc7c85ea825 (patch)
tree17e4346b13c4d5077e7dfab0af1ef6f349e0456c /src
parentfa7ea0ecc8cd92ec13ee5368d496e3e28b53bc7c (diff)
downloadslibtool-51d8f459e74111c81b2d62cf9f581cc7c85ea825.tar.bz2
slibtool-51d8f459e74111c81b2d62cf9f581cc7c85ea825.tar.xz
slbt_output_config_mkvars(): also export the sltdl preference option.
Diffstat (limited to 'src')
-rw-r--r--src/output/slbt_output_config.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/output/slbt_output_config.c b/src/output/slbt_output_config.c
index 4c502d8..2c51f86 100644
--- a/src/output/slbt_output_config.c
+++ b/src/output/slbt_output_config.c
@@ -93,6 +93,7 @@ static int slbt_output_config_mkvars(const struct slbt_driver_ctx * dctx)
int fdout;
const char * shared_option;
const char * static_option;
+ const char * prefer_sltdl;
const struct slbt_source_version * verinfo;
const struct slbt_common_ctx * cctx;
@@ -105,6 +106,9 @@ static int slbt_output_config_mkvars(const struct slbt_driver_ctx * dctx)
static_option = (dctx->cctx->drvflags & SLBT_DRIVER_DISABLE_STATIC)
? disable : enable;
+ prefer_sltdl = (dctx->cctx->drvflags & SLBT_DRIVER_PREFER_SLTDL)
+ ? enable : disable;
+
cctx = dctx->cctx;
/* header */
@@ -132,6 +136,9 @@ static int slbt_output_config_mkvars(const struct slbt_driver_ctx * dctx)
if (slbt_dprintf(fdout,"# static libraries?\n" "build_old_libs=%s\n\n",static_option) < 0)
return SLBT_SYSTEM_ERROR(dctx,0);
+ if (slbt_dprintf(fdout,"# prefer sltdl?\n" "prefer_sltdl=%s\n\n",prefer_sltdl) < 0)
+ return SLBT_SYSTEM_ERROR(dctx,0);
+
if (slbt_dprintf(fdout,"# host identification\n" "host=%s\n\n",cctx->host.host) < 0)
return SLBT_SYSTEM_ERROR(dctx,0);