From patchwork Tue Oct 15 21:46:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1177439 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="LzMdIkJA"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46t8Bl2VVXz9sPF for ; Wed, 16 Oct 2019 08:46:23 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id B362D22CB0; Tue, 15 Oct 2019 21:46:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tBOAFsrgL9x8; Tue, 15 Oct 2019 21:46:19 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 373652041D; Tue, 15 Oct 2019 21:46:19 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id D7B7D1BF3DF for ; Tue, 15 Oct 2019 21:46:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id CB9BA87658 for ; Tue, 15 Oct 2019 21:46:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MRfqXUWaqWiv for ; Tue, 15 Oct 2019 21:46:17 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by whitealder.osuosl.org (Postfix) with ESMTPS id E419A84BC1 for ; Tue, 15 Oct 2019 21:46:16 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id 7so629602wme.1 for ; Tue, 15 Oct 2019 14:46:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NGrjUD2M88+xihBPJs4MU4QRTXnTCa4kka0HXgv7pCg=; b=LzMdIkJAgrIyUUBzSVPD36tavez8QL95+l0LU9kqGlHXL4Gx0niGZxL7Ik0JitTwY5 Q4paNTyRiaDbqmlfEa17WyjjC1ph1omu4ewYMjBLqeG59uldI7mFX93SLdA3+m9gUfKM 4hdPEeQ6U7BYVrcm9klZXNnQY276VzI5OM4JS5Al4foyKaIoMjCkxL6CJV/++DtcleL2 VLqQO+wX5Xojq8UTiKYS2246fdEjwNGCB+zeoKo57IRFJ8du8pz/gHtNdDtYVm5PTuNz HqJz1InR/48Aq4VmlVAZibwj2oDFFqLat3ZxTZeNEl/ausrsE9BomWYRo9zMXliRGaw9 ivog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NGrjUD2M88+xihBPJs4MU4QRTXnTCa4kka0HXgv7pCg=; b=abMl+EoXkTQWpBs/mcT2mgSvNyKU/spkLFTEfpo8761MtDFosLpoGGqRuCXi3WyOWl UEWVO85l839kj5QligsxlM0gUiN2yNegN+WHpbjTd4BiGx+fznjd071oBN3q0kW3ULzW cSoyjxHYNrLxbwZoQkqshXHWTtKzB2AQOaBVSz3mLdWSYkZj/P+9/6V27tTzAZbpqO0K tW235Jlg5RIlihxqFQ93VsjPYB6HkyEVCBkH4GpKFIR3HCod7SkVwCbhUN6ZYwNI/z9c XTnqyKonlj6M4sOwncSigacXw/fXngQ53fBSmPkPe8gwyNDz/tw7/kvUm1ibmzweiX1/ ninA== X-Gm-Message-State: APjAAAVGLFe3P/zINwkZiawnaGJTDw1avW9f/jRU/b9oqlvIqWhMFBsU YCET0TsJ5z7vztSIwokqKTKQLWMO X-Google-Smtp-Source: APXvYqySrHaoRuCXcX8bNU2dSPkNNF1m+eT4jhxH4SMtfLOT2/s78nQCwNo+J9FxLqvLrx3hmphmlg== X-Received: by 2002:a7b:cd89:: with SMTP id y9mr543194wmj.51.1571175975106; Tue, 15 Oct 2019 14:46:15 -0700 (PDT) Received: from kali.home (lfbn-1-3732-187.w86-229.abo.wanadoo.fr. [86.229.230.187]) by smtp.gmail.com with ESMTPSA id s10sm744920wmf.48.2019.10.15.14.46.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 14:46:14 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Tue, 15 Oct 2019 23:46:44 +0200 Message-Id: <20191015214644.31476-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/libopenssl: fix static build on x86_64 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Use no-asm when building statically on x86_64, see https://github.com/openssl/openssl/issues/9839 Fixes: - http://autobuild.buildroot.org/results/e4f04bb13ec1b82b73db645bea4933e52bca4185 Signed-off-by: Fabrice Fontaine --- package/libopenssl/libopenssl.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/libopenssl/libopenssl.mk b/package/libopenssl/libopenssl.mk index 4a430bcb4d..ff9b52a002 100644 --- a/package/libopenssl/libopenssl.mk +++ b/package/libopenssl/libopenssl.mk @@ -56,6 +56,10 @@ endif ifeq ($(BR2_STATIC_LIBS),y) # Use "gcc" minimalistic target to disable DSO LIBOPENSSL_TARGET_ARCH = gcc +# See https://github.com/openssl/openssl/issues/9839 +ifeq ($(ARCH),x86_64) +LIBOPENSSL_TARGET_ARCH += no-asm +endif else # Some architectures are optimized in OpenSSL # Doesn't work for thumb-only (Cortex-M?)