From 51d8f459e74111c81b2d62cf9f581cc7c85ea825 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 3 May 2025 20:56:58 +0000 Subject: slbt_output_config_mkvars(): also export the sltdl preference option. --- src/output/slbt_output_config.c | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- cgit v1.2.3