From 1858429b172ed77d15fd59045493fdecf460373f Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 11 May 2021 21:03:55 +0000 Subject: slbt_exec_install_entry(): perform non-library actions as early as possible. --- src/logic/slbt_exec_install.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/logic') diff --git a/src/logic/slbt_exec_install.c b/src/logic/slbt_exec_install.c index fc401e5..885c650 100644 --- a/src/logic/slbt_exec_install.c +++ b/src/logic/slbt_exec_install.c @@ -390,6 +390,19 @@ static int slbt_exec_install_entry( sprintf(srcfile,".libs/%s",lasource); } + /* executable? ordinary file? */ + if (fexe || !dot || strcmp(dot,".la")) { + *src = fexe ? srcfile : (char *)entry->arg; + *dst = dest ? 0 : (char *)last->arg; + + if (!(dctx->cctx->drvflags & SLBT_DRIVER_SILENT)) + if (slbt_output_install(dctx,ectx)) + return SLBT_NESTED_ERROR(dctx); + + return (((ret = slbt_spawn(ectx,true)) < 0) || ectx->exitcode) + ? SLBT_SPAWN_ERROR(dctx) : 0; + } + /* -shrext, dsosuffix */ strcpy(sobuf,dctx->cctx->settings.dsosuffix); dsosuffix = sobuf; @@ -411,19 +424,6 @@ static int slbt_exec_install_entry( strcpy(sobuf,&target[slen+7]); } - /* executable? ordinary file? */ - if (fexe || !dot || strcmp(dot,".la")) { - *src = fexe ? srcfile : (char *)entry->arg; - *dst = dest ? 0 : (char *)last->arg; - - if (!(dctx->cctx->drvflags & SLBT_DRIVER_SILENT)) - if (slbt_output_install(dctx,ectx)) - return SLBT_NESTED_ERROR(dctx); - - return (((ret = slbt_spawn(ectx,true)) < 0) || ectx->exitcode) - ? SLBT_SPAWN_ERROR(dctx) : 0; - } - /* legabits? */ if (dctx->cctx->drvflags & SLBT_DRIVER_LEGABITS) if (slbt_exec_install_library_wrapper(dctx,ectx,entry,dstdir)) -- cgit v1.2.3