summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/logic/slbt_exec_install.c26
1 files changed, 13 insertions, 13 deletions
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))