[FFmpeg-devel] [PATCH 1/2] configure: detect djgpp libc
Peter Ross
pross at xvid.org
Mon Nov 12 14:51:08 EET 2018
---
DOS builds are currently broken.
patch 1 adds djgpp libc detection.
patch 2 adds float min/max functions just for djggp libc
(these functions were removed from libm.h in 4436a8f44dedc83767b3d9da9beb85d1fae2ca30)
configure | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 00b5d9795e..6db4333f25 100755
--- a/configure
+++ b/configure
@@ -5291,7 +5291,6 @@ case $target_os in
network_extralibs="-lsocket"
objformat="coff"
enable dos_paths
- add_cppflags -U__STRICT_ANSI__
;;
linux)
enable section_data_rel_ro
@@ -5460,6 +5459,9 @@ EOF
elif test_${pfx}cpp_condition sys/brand.h "defined LABELED_BRAND_NAME"; then
eval ${pfx}libc_type=solaris
add_${pfx}cppflags -D__EXTENSIONS__ -D_XOPEN_SOURCE=600
+ elif test_${pfx}cpp_condition sys/version.h "defined __DJGPP__"; then
+ eval ${pfx}libc_type=djgpp
+ add_cppflags -U__STRICT_ANSI__
fi
test_${pfx}cc <<EOF
#include <time.h>
--
2.17.1
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20181112/4af2ddb3/attachment.sig>
More information about the ffmpeg-devel
mailing list