summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-20 07:14:57 +0000
committermidipix <writeonce@midipix.org>2024-02-20 07:14:57 +0000
commitcdc3c6697af08d485e5a56952549b9e94e020396 (patch)
treec9fbb557147efd3f4923951deee9d27babc10fe2 /src/util
parentb8dd56ad1477766403a4b7dbaaff309feba3d92d (diff)
downloadslibtool-cdc3c6697af08d485e5a56952549b9e94e020396.tar.bz2
slibtool-cdc3c6697af08d485e5a56952549b9e94e020396.tar.xz
slbt_util_create_mapfile(): refactor coff & mach-o detection logic.
Diffstat (limited to 'src/util')
-rw-r--r--src/util/slbt_create_mapfile.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/util/slbt_create_mapfile.c b/src/util/slbt_create_mapfile.c
index d0f5d95..1a8f8e7 100644
--- a/src/util/slbt_create_mapfile.c
+++ b/src/util/slbt_create_mapfile.c
@@ -39,12 +39,8 @@ static int slbt_util_output_mapfile_impl(
const char ** symv;
const char ** symstrv;
- fmach = !strcmp(dctx->cctx->host.flavor,"darwin");
-
- fcoff = !strcmp(dctx->cctx->host.flavor,"midipix");
- fcoff = fcoff || !strcmp(dctx->cctx->host.flavor,"cygwin");
- fcoff = fcoff || !strcmp(dctx->cctx->host.flavor,"mingw");
- fcoff = fcoff || !strcmp(dctx->cctx->host.flavor,"msys2");
+ fcoff = slbt_host_objfmt_is_coff(dctx);
+ fmach = slbt_host_objfmt_is_macho(dctx);
if (fcoff) {
if (slbt_dprintf(fdout,"EXPORTS\n") < 0)