diff options
-rw-r--r-- | build2/cc/compile.cxx | 6 | ||||
-rw-r--r-- | build2/cc/link.cxx | 4 | ||||
-rw-r--r-- | build2/cc/pkgconfig.cxx | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/build2/cc/compile.cxx b/build2/cc/compile.cxx index c4df30f..fce5d21 100644 --- a/build2/cc/compile.cxx +++ b/build2/cc/compile.cxx @@ -348,7 +348,7 @@ namespace build2 { // On Darwin, Win32 -fPIC is the default. // - if (tclass == "linux" || tclass == "freebsd") + if (tclass == "linux" || tclass == "bsd") cs.append ("-fPIC"); } @@ -742,7 +742,7 @@ namespace build2 { // On Darwin, Win32 -fPIC is the default. // - if (tclass == "linux" || tclass == "freebsd") + if (tclass == "linux" || tclass == "bsd") args.push_back ("-fPIC"); } @@ -1492,7 +1492,7 @@ namespace build2 { // On Darwin, Win32 -fPIC is the default. // - if (tclass == "linux" || tclass == "freebsd") + if (tclass == "linux" || tclass == "bsd") args.push_back ("-fPIC"); } diff --git a/build2/cc/link.cxx b/build2/cc/link.cxx index 5a8dcb7..9a8e21c 100644 --- a/build2/cc/link.cxx +++ b/build2/cc/link.cxx @@ -746,12 +746,12 @@ namespace build2 target& t, scope& bs, lorder lo, bool for_install) const { - // Use -rpath-link on targets that support it (Linux, FreeBSD). Note + // Use -rpath-link on targets that support it (Linux, *BSD). Note // that we don't really need it for top-level libraries. // if (for_install) { - if (tclass != "linux" && tclass != "freebsd") + if (tclass != "linux" && tclass != "bsd") return; } diff --git a/build2/cc/pkgconfig.cxx b/build2/cc/pkgconfig.cxx index 08d5fef..8ab608a 100644 --- a/build2/cc/pkgconfig.cxx +++ b/build2/cc/pkgconfig.cxx @@ -115,7 +115,7 @@ namespace build2 { // Platform-specific locations. // - if (tclass == "freebsd") + if (tsys == "freebsd") { // On FreeBSD .pc files go to libdata/pkgconfig/, not lib/pkgconfig/. // |