summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-03-05 13:20:09 (GMT)
committerKitware Robot <kwrobot@kitware.com>2024-03-05 13:20:23 (GMT)
commit9cc874a4e888e1f294a2d4fa8aa49db7a52dc8be (patch)
tree5253bb04aaba25be8c9372b1868428f7e5e33e70
parentd40dd208749e81d166972288ec8a77efa9a3edc5 (diff)
parentda5de7f9f31c69dad8232623a0f265499263d437 (diff)
downloadCMake-9cc874a4e888e1f294a2d4fa8aa49db7a52dc8be.zip
CMake-9cc874a4e888e1f294a2d4fa8aa49db7a52dc8be.tar.gz
CMake-9cc874a4e888e1f294a2d4fa8aa49db7a52dc8be.tar.bz2
Merge topic '2024-bootstrap-pkgconfig-ldflags'
da5de7f9f3 bootstrap: Allow --boostrap-system-* libraries custom prefixes Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9307
-rwxr-xr-xbootstrap15
1 files changed, 12 insertions, 3 deletions
diff --git a/bootstrap b/bootstrap
index 01fcfae..60e5638 100755
--- a/bootstrap
+++ b/bootstrap
@@ -1787,20 +1787,26 @@ if test "x${bootstrap_system_libuv}" = "x"; then
else
if test `which pkg-config`; then
use_uv_flags="`pkg-config --cflags libuv`"
+ use_uv_ldflags="`pkg-config --libs libuv`"
cmake_c_flags="${cmake_c_flags} ${use_uv_flags}"
cmake_cxx_flags="${cmake_cxx_flags} ${use_uv_flags}"
+ else
+ use_librhash_ldflags="-luv"
fi
- libs="${libs} -luv"
+ libs="${libs} ${use_uv_ldflags}"
fi
librhash_c_flags="-DNO_IMPORT_EXPORT"
if test "x${bootstrap_system_librhash}" != "x"; then
if test `which pkg-config`; then
use_librhash_flags="`pkg-config --cflags librhash`"
+ use_librhash_ldflags="`pkg-config --libs librhash`"
cmake_c_flags="${cmake_c_flags} ${use_librhash_flags}"
cmake_cxx_flags="${cmake_cxx_flags} ${use_librhash_flags}"
+ else
+ use_librhash_ldflags="-lrhash"
fi
- libs="${libs} -lrhash"
+ libs="${libs} ${use_librhash_ldflags}"
fi
jsoncpp_cxx_flags=
@@ -1809,9 +1815,12 @@ if test "x${bootstrap_system_jsoncpp}" = "x"; then
else
if test `which pkg-config`; then
use_jsoncpp_flags="`pkg-config --cflags jsoncpp`"
+ use_jsoncpp_ldflags="`pkg-config --libs jsoncpp`"
cmake_cxx_flags="${cmake_cxx_flags} ${use_jsoncpp_flags}"
+ else
+ use_librhash_ldflags="-ljsoncpp"
fi
- libs="${libs} -ljsoncpp"
+ libs="${libs} ${use_jsoncpp_ldflags}"
fi
if test "x${cmake_ansi_cxx_flags}" != "x"; then