File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1400,6 +1400,13 @@ pub const LibExeObjStep = struct {
14001400 %% cc_args .append (builder .pathFromRoot (full_path_lib ));
14011401 }
14021402
1403+ {
1404+ var it = self .link_libs .iterator ();
1405+ while (it .next ()) | entry | {
1406+ %% cc_args .append (builder .fmt ("-l{}" , entry .key ));
1407+ }
1408+ }
1409+
14031410 if (is_darwin and ! self .static ) {
14041411 var it = self .frameworks .iterator ();
14051412 while (it .next ()) | entry | {
@@ -1464,6 +1471,13 @@ pub const LibExeObjStep = struct {
14641471
14651472 %% cc_args .append ("-rdynamic" );
14661473
1474+ {
1475+ var it = self .link_libs .iterator ();
1476+ while (it .next ()) | entry | {
1477+ %% cc_args .append (builder .fmt ("-l{}" , entry .key ));
1478+ }
1479+ }
1480+
14671481 if (is_darwin ) {
14681482 if (self .need_flat_namespace_hack ) {
14691483 %% cc_args .append ("-Wl,-flat_namespace" );
You can’t perform that action at this time.
0 commit comments