mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 18:51:47 +08:00
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
diff --git a/configure b/configure
|
|
index 7c5b8a1..181fc47 100644
|
|
--- a/configure
|
|
+++ b/configure
|
|
@@ -3906,6 +3906,9 @@ for opt do
|
|
--libfuzzer=*)
|
|
libfuzzer_path="$optval"
|
|
;;
|
|
+ --debug)
|
|
+ enable debug_configure
|
|
+ ;;
|
|
*)
|
|
optname="${opt%%=*}"
|
|
optname="${optname#--}"
|
|
@@ -6037,8 +6040,13 @@ fi
|
|
|
|
enabled zlib && { check_pkg_config zlib zlib "zlib.h" zlibVersion ||
|
|
check_lib zlib zlib.h zlibVersion -lz; }
|
|
-enabled bzlib && check_lib bzlib bzlib.h BZ2_bzlibVersion -lbz2
|
|
-enabled lzma && check_lib lzma lzma.h lzma_version_number -llzma
|
|
+if enabled debug_configure; then
|
|
+ enabled bzlib && check_lib bzlib bzlib.h BZ2_bzlibVersion -lbz2d
|
|
+ enabled lzma && check_lib lzma lzma.h lzma_version_number -llzmad
|
|
+else
|
|
+ enabled bzlib && check_lib bzlib bzlib.h BZ2_bzlibVersion -lbz2
|
|
+ enabled lzma && check_lib lzma lzma.h lzma_version_number -llzma
|
|
+fi
|
|
|
|
# On some systems dynamic loading requires no extra linker flags
|
|
check_lib libdl dlfcn.h "dlopen dlsym" || check_lib libdl dlfcn.h "dlopen dlsym" -ldl
|