summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)