From patchwork Wed Apr 15 13:34:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josh Dekker X-Patchwork-Id: 18984 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 20593449437 for ; Wed, 15 Apr 2020 16:34:25 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 04A3268BA82; Wed, 15 Apr 2020 16:34:25 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 651CA68BA81 for ; Wed, 15 Apr 2020 16:34:18 +0300 (EEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 641E75C00E0 for ; Wed, 15 Apr 2020 09:34:16 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 15 Apr 2020 09:34:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=itanimul.li; h= from:to:subject:date:message-id:reply-to:mime-version :content-transfer-encoding; s=fm1; bh=rCAXtx8ZbseX1xA/8QzCPJ0uTb DU0YvicX/YEVGXIeQ=; b=mED9RO+KqBLtTwG930qGBQJhy8yNJUjSCjKO17y5KT 5sjasvFX749r83BopWGsRCbWgXUTC6MqSBxY6Zki5Pay7o0zL5tPwAyg6euEglp+ lEv8/CJHyTzfLKAezhpMq3mjOJUtoaRGz0MFrhRbcDXVy1C8KjTKxV20hZ3C/fJN gdU33rAW54BwnTFabN6FzFuu/zr5MFwPG2EZPV2XrTWPEsS95nc8ilsrVfHD1gcX 0glzR+TUBSZ4lABwAMUHGcON4c5B6HcmuN+17XKN8J/lrxiqO3jJKf3CGFvh1Lf/ pO3qjVpGDsgUg7hUiCeSH694YS+6x4WctbMI1xdDi7Yw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:date:from :message-id:mime-version:reply-to:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=rCAXtx 8ZbseX1xA/8QzCPJ0uTbDU0YvicX/YEVGXIeQ=; b=Qc9K4DbJjNe14AqYMhCvY5 3Xmn1Mw54TZ3GC2Qh1yWfXRoPwvz8cPAu21orGETcOlZr6//pXoEevEvC43zBw1T xCodtteyiK1FxLnknpkFuyi5ESiFYtKbu/tOMBoIuAwBbNUQceAhVfBn3zTs0hDn mjpn3MMvwPiEz8oCSXt0k/1sx8+jUZFkStj7T3g12RftGnTn5I/RLJ460iN6m2tp 2bw3fktwzmtApEAp+5dHGDjNaqhNm0hDjvi6+lLjEFIQ6YaFK36ZUYX7Nsic3DPK Z3Nm913fsXWg87FqtOgjw4pHu3mgRK2+LOWAoMsNXJgvQCCEJiVSpBQARhs30lJw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrfeefgdehiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfforhgggfestdekredtre dttdenucfhrhhomheplfhoshhhucguvgcumfhotghkuceojhhoshhhsehithgrnhhimhhu lhdrlhhiqeenucfkphepkedurddutdegrdejkedrudehudenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjohhshhesihhtrghnihhmuhhlrdhl ih X-ME-Proxy: Received: from localhost.localdomain (cpc107625-sotn16-2-0-cust150.15-1.cable.virginm.net [81.104.78.151]) by mail.messagingengine.com (Postfix) with ESMTPA id CCD173060064 for ; Wed, 15 Apr 2020 09:34:15 -0400 (EDT) From: Josh de Kock To: ffmpeg-devel@ffmpeg.org Date: Wed, 15 Apr 2020 14:34:09 +0100 Message-Id: <20200415133409.26610-1-josh@itanimul.li> X-Mailer: git-send-email 2.24.1 (Apple Git-126) MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2] configure: fix clang on macOS 10.15 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" Works around a bug in the newer Xcode 11's clang with -fstack-check emitting bad code with misaligned call instructions. This fixes Trac #8073 --- configure | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure b/configure index 4d4c429be9..2ede4e7163 100755 --- a/configure +++ b/configure @@ -5358,6 +5358,11 @@ case $target_os in fi version_script='-exported_symbols_list' VERSION_SCRIPT_POSTPROCESS_CMD='tr " " "\n" | sed -n /global:/,/local:/p | grep ";" | tr ";" "\n" | sed -E "s/(.+)/_\1/g" | sed -E "s/(.+[^*])$$$$/\1*/"' + # Workaround for Xcode 11 -fstack-check bug + if enabled clang; then + clang_version=$($cc -dumpversion) + test ${clang_version%%.*} -eq 11 && add_cflags -fno-stack-check + fi ;; msys*) die "Native MSYS builds are discouraged, please use the MINGW environment."