diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-09-25 09:34:45 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-09-25 09:34:45 +0200 |
commit | 1c14594f791665d2f5c8813bc8c537ff663906c8 (patch) | |
tree | b175c245026bb9aaf4c84835e501c2822788d202 | |
parent | a301f5f1b934129a1030eb5c171233fea06694de (diff) |
Treat -liconv on Mac OS as system
-rw-r--r-- | libbuild2/cc/pkgconfig.cxx | 6 |
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") |