-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ffmpeg]Fix debug build in Windows. (#7476)
- Loading branch information
Showing
3 changed files
with
70 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters