e5d83d
link mode: properly handle -all-static when creating an executable image.
@@ -1096,6 +1096,10 @@ static int slbt_exec_link_create_executable(
|
|
1096
1096
|
*ectx->lout[0] = "-o";
|
1097
1097
|
*ectx->lout[1] = output;
|
1098
1098
|
|
1099
|
+
/* static? */
|
1100
|
+
if (dctx->cctx->drvflags & SLBT_DRIVER_ALL_STATIC)
|
1101
|
+
*ectx->dpic = "-static";
|
1102
|
+
|
1099
1103
|
/* cwd */
|
1100
1104
|
if (!getcwd(cwd,sizeof(cwd)))
|
1101
1105
|
return SLBT_SYSTEM_ERROR(dctx);
|