diff options
author | midipix <writeonce@midipix.org> | 2024-02-20 07:14:57 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-02-20 07:14:57 +0000 |
commit | cdc3c6697af08d485e5a56952549b9e94e020396 (patch) | |
tree | c9fbb557147efd3f4923951deee9d27babc10fe2 | |
parent | b8dd56ad1477766403a4b7dbaaff309feba3d92d (diff) | |
download | slibtool-cdc3c6697af08d485e5a56952549b9e94e020396.tar.bz2 slibtool-cdc3c6697af08d485e5a56952549b9e94e020396.tar.xz |
slbt_util_create_mapfile(): refactor coff & mach-o detection logic.
-rw-r--r-- | src/util/slbt_create_mapfile.c | 8 |
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) |