summaryrefslogtreecommitdiff
path: root/src/arbits
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-17 20:19:03 +0000
committermidipix <writeonce@midipix.org>2024-02-17 20:19:03 +0000
commit874b595d141abd86bf5253ca835471c828b4e8be (patch)
tree46a1ea3e9d42526b420a67432e0ed2acec64ae3d /src/arbits
parentb336c5b52b3edaa7c0334eab5477a437feda672d (diff)
downloadslibtool-874b595d141abd86bf5253ca835471c828b4e8be.tar.bz2
slibtool-874b595d141abd86bf5253ca835471c828b4e8be.tar.xz
ar mode: pretty printer: symbols, mapfile: added the -Wnosort switch.
Diffstat (limited to 'src/arbits')
-rw-r--r--src/arbits/output/slbt_ar_output_mapfile.c2
-rw-r--r--src/arbits/output/slbt_ar_output_symbols.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/arbits/output/slbt_ar_output_mapfile.c b/src/arbits/output/slbt_ar_output_mapfile.c
index 3455c37..ab85394 100644
--- a/src/arbits/output/slbt_ar_output_mapfile.c
+++ b/src/arbits/output/slbt_ar_output_mapfile.c
@@ -27,7 +27,7 @@ static int slbt_ar_output_mapfile_impl(
regex_t regctx;
regmatch_t pmatch[2] = {0};
- fsort = true;
+ fsort = !(dctx->cctx->fmtflags & SLBT_OUTPUT_ARCHIVE_NOSORT);
if (slbt_dprintf(fdout,"{\n" "\t" "global:\n") < 0)
return SLBT_SYSTEM_ERROR(dctx,0);
diff --git a/src/arbits/output/slbt_ar_output_symbols.c b/src/arbits/output/slbt_ar_output_symbols.c
index 167de50..72dd3e0 100644
--- a/src/arbits/output/slbt_ar_output_symbols.c
+++ b/src/arbits/output/slbt_ar_output_symbols.c
@@ -33,7 +33,7 @@ static int slbt_ar_output_symbols_posix(
regmatch_t pmatch[2] = {0};
fdout = fdctx->fdout;
- fsort = true;
+ fsort = !(dctx->cctx->fmtflags & SLBT_OUTPUT_ARCHIVE_NOSORT);
if (fsort && !mctx->mapstrv)
if (slbt_update_mapstrv(dctx,mctx) < 0)