| ... | @@ -60,6 +60,8 @@ pub fn detect(arena: Allocator, native_target: std.Target) !NativePaths { | ... | @@ -60,6 +60,8 @@ pub fn detect(arena: Allocator, native_target: std.Target) !NativePaths { |
| 60 | const lib_path = word[2..]; | 60 | const lib_path = word[2..]; |
| 61 | try self.addLibDir(lib_path); | 61 | try self.addLibDir(lib_path); |
| 62 | try self.addRPath(lib_path); | 62 | try self.addRPath(lib_path); |
| | 63 | } else if (word.len > 2 and word[0] == '-' and word[1] == 'l') { |
| | 64 | // There could still be paths after this. |
| 63 | } else { | 65 | } else { |
| 64 | try self.addWarningFmt("Unrecognized C flag from NIX_LDFLAGS: {s}", .{word}); | 66 | try self.addWarningFmt("Unrecognized C flag from NIX_LDFLAGS: {s}", .{word}); |
| 65 | break; | 67 | break; |