aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-09-25 09:34:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-09-25 09:34:45 +0200
commit1c14594f791665d2f5c8813bc8c537ff663906c8 (patch)
treeb175c245026bb9aaf4c84835e501c2822788d202
parenta301f5f1b934129a1030eb5c171233fea06694de (diff)
Treat -liconv on Mac OS as system
-rw-r--r--libbuild2/cc/pkgconfig.cxx6
1 files changed, 5 insertions, 1 deletions
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")