From patchwork Mon Nov 12 12:51:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ross X-Patchwork-Id: 10994 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 0E3F944C463 for ; Mon, 12 Nov 2018 14:51:19 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6C38E68A252; Mon, 12 Nov 2018 14:50:50 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mx.sdf.org (ol.sdf.org [205.166.94.20]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7928A68A20A for ; Mon, 12 Nov 2018 14:50:43 +0200 (EET) Received: from caffea1cc811317299ad5eb3f1ce887f (pa49-199-130-245.pa.vic.optusnet.com.au [49.199.130.245]) (authenticated (128 bits)) by mx.sdf.org (8.15.2/8.14.5) with ESMTPSA id wACCp8Lb021000 (using TLSv1.2 with cipher AES256-GCM-SHA384 (256 bits) verified NO) for ; Mon, 12 Nov 2018 12:51:13 GMT Date: Mon, 12 Nov 2018 23:51:08 +1100 From: Peter Ross To: ffmpeg-devel@ffmpeg.org Message-ID: <3aeac525b964740ddd2a6cabf6f73fd0f4d05b39.1542026632.git.pross@xvid.org> MIME-Version: 1.0 User-Agent: Mutt/1.9.4 (2018-02-28) Subject: [FFmpeg-devel] [PATCH 1/2] configure: detect djgpp libc X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" --- 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 <