diff options
author | midipix <writeonce@midipix.org> | 2024-03-14 21:25:54 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-03-14 21:25:54 +0000 |
commit | d68d026fda8008ac607148eb0a727afdff6d68b2 (patch) | |
tree | 9d19dfde037743a4829e379b31aa40d47138db6c /src | |
parent | 7c3e61cef2f522ad4008682c5b7671eeee2bf0e5 (diff) | |
download | slibtool-d68d026fda8008ac607148eb0a727afdff6d68b2.tar.bz2 slibtool-d68d026fda8008ac607148eb0a727afdff6d68b2.tar.xz |
link mode: on PE target, make -export-dynamic a no-op switch.
Diffstat (limited to 'src')
-rw-r--r-- | src/logic/linkcmd/slbt_linkcmd_argv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/logic/linkcmd/slbt_linkcmd_argv.c b/src/logic/linkcmd/slbt_linkcmd_argv.c index 0cb197e..0209201 100644 --- a/src/logic/linkcmd/slbt_linkcmd_argv.c +++ b/src/logic/linkcmd/slbt_linkcmd_argv.c @@ -569,7 +569,8 @@ slbt_hidden int slbt_exec_link_adjust_argument_vector( } if (dctx->cctx->drvflags & SLBT_DRIVER_EXPORT_DYNAMIC) - *aarg++ = "-Wl,--export-dynamic"; + if (!slbt_host_objfmt_is_coff(dctx)) + *aarg++ = "-Wl,--export-dynamic"; return 0; } |