From 1c14594f791665d2f5c8813bc8c537ff663906c8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 25 Sep 2023 09:34:45 +0200 Subject: Treat -liconv on Mac OS as system --- libbuild2/cc/pkgconfig.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libbuild2/cc/pkgconfig.cxx') diff --git a/libbuild2/cc/pkgconfig.cxx b/libbuild2/cc/pkgconfig.cxx index f04876b..b0518f9 100644 --- a/libbuild2/cc/pkgconfig.cxx +++ b/libbuild2/cc/pkgconfig.cxx @@ -683,7 +683,11 @@ namespace build2 } else if (tclass == "macos") { - if (l == "-lSystem") + // Note that Mac OS has libiconv in /usr/lib/ which only comes + // in the shared variant. So we treat it as system. + // + if (l == "-lSystem" || + l == "-liconv") continue; } else if (tclass == "bsd") -- cgit v1.1