diff options
author | midipix <writeonce@midipix.org> | 2024-03-14 20:40:34 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-03-14 20:40:34 +0000 |
commit | 7c3e61cef2f522ad4008682c5b7671eeee2bf0e5 (patch) | |
tree | ee65b80d4d403f1a04b7ca3eb2dadf9f98375856 /src/logic/linkcmd | |
parent | eac61a9b72fe08c4304722f8aa59edacbddc4fd8 (diff) | |
download | slibtool-7c3e61cef2f522ad4008682c5b7671eeee2bf0e5.tar.bz2 slibtool-7c3e61cef2f522ad4008682c5b7671eeee2bf0e5.tar.xz |
link mode: do not create dependency files for explicit archive outputs.
Diffstat (limited to 'src/logic/linkcmd')
-rw-r--r-- | src/logic/linkcmd/slbt_linkcmd_archive.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/logic/linkcmd/slbt_linkcmd_archive.c b/src/logic/linkcmd/slbt_linkcmd_archive.c index c55b369..b7c090b 100644 --- a/src/logic/linkcmd/slbt_linkcmd_archive.c +++ b/src/logic/linkcmd/slbt_linkcmd_archive.c @@ -74,7 +74,8 @@ slbt_hidden int slbt_exec_link_create_archive( const struct slbt_driver_ctx * dctx, struct slbt_exec_ctx * ectx, const char * arfilename, - bool fpic) + bool fpic, + bool fdep) { int fdcwd; char ** argv; @@ -159,10 +160,11 @@ slbt_hidden int slbt_exec_link_create_archive( return SLBT_NESTED_ERROR(dctx); /* .deps */ - if (slbt_exec_link_create_dep_file( - dctx,ectx,ectx->cargv, - arfilename,true)) - return SLBT_NESTED_ERROR(dctx); + if (fdep) + if (slbt_exec_link_create_dep_file( + dctx,ectx,ectx->cargv, + arfilename,true)) + return SLBT_NESTED_ERROR(dctx); /* ar spawn */ if ((slbt_spawn(ectx,true) < 0) && (ectx->pid < 0)) { |