| ... | ... | @@ -1400,6 +1400,13 @@ pub const LibExeObjStep = struct { |
| 1400 | 1400 | %%cc_args.append(builder.pathFromRoot(full_path_lib)); |
| 1401 | 1401 | } |
| 1402 | 1402 | |
| 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 | |
| 1403 | 1410 | if (is_darwin and !self.static) { |
| 1404 | 1411 | var it = self.frameworks.iterator(); |
| 1405 | 1412 | while (it.next()) |entry| { |
| ... | ... | @@ -1464,6 +1471,13 @@ pub const LibExeObjStep = struct { |
| 1464 | 1471 | |
| 1465 | 1472 | %%cc_args.append("-rdynamic"); |
| 1466 | 1473 | |
| 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 | |
| 1467 | 1481 | if (is_darwin) { |
| 1468 | 1482 | if (self.need_flat_namespace_hack) { |
| 1469 | 1483 | %%cc_args.append("-Wl,-flat_namespace"); |