From patchwork Fri May 24 19:02:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1105137 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.137; helo=fraxinus.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="ObJiVKsz"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 459bNn02hnz9s00 for ; Sat, 25 May 2019 05:03:04 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 71DC786DDA; Fri, 24 May 2019 19:03:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vpuFZ2XP-114; Fri, 24 May 2019 19:03:00 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id BA6C986DEE; Fri, 24 May 2019 19:03:00 +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 CBDBF1BF429 for ; Fri, 24 May 2019 19:02:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C7BD588021 for ; Fri, 24 May 2019 19:02:58 +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 nvIiezxRyBZT for ; Fri, 24 May 2019 19:02:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by whitealder.osuosl.org (Postfix) with ESMTPS id E33AE88020 for ; Fri, 24 May 2019 19:02:57 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id r7so10981537wrr.13 for ; Fri, 24 May 2019 12:02:57 -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=KYOwt8WwUjefdCN40KPhKmm+5YkkCxmiCtzDhAPmrmg=; b=ObJiVKszMtWaxzCKF8QsotBYea8dp8+D/2No1hkhvzPUrR6x/yffqflbJy1OKzyIzQ xrhEYelFORBOFm4WCbFfkQm+f8mBmaWj5AXW70+tzBzQPv7bdjgLL48ONn0tEt4LJut9 0AOjMTY8/FjS01mr0w8SpfR/1TpUwl2IOAs5xiS0EgSRNP0rIb6eXBHY/45dgCl7u9jT EZjjX1omfrytSUWjHu8XgatJWWTCQbZc0Zoz6AbDoTH54IvSl5QbPXADHCCHcPgFzCce vdA7Re45p2RfcOFcDKJeth2ALGCBHFLAAqQw4WqHu8VL9kx7ux0YyevQT+09dD06twi/ QqVQ== 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=KYOwt8WwUjefdCN40KPhKmm+5YkkCxmiCtzDhAPmrmg=; b=giMOP4RrH8O0cJABEn4Kqh3Y3DvXQjTx1RqpOfoAcKibfupwKqGgJQLQmxZByVABTg /C8S6Ekjv+tGrvrF/iZYz3g1vNUZBLKWe6zAXvPifaQI9pJxRVrYvOTrkr8tlp9+1NP7 mq886fe2TvMXJqzYKrnskCPjA3UsOcbsvtPXEpCmzuKf97RLTGHwavb50MnSEBeAzRxE 6cXED7IWvofmMkvrI/vw16XraSqPTZq48OlVEnSZ4x3Rut4mOZdPV6x9hdZbNE1+LhTY 5eaHdGBCpHlLhkaao2h04pDMf+qIsZLiw8gfgm2yWI2vAsMxpMGUPv3gicj8TH3csX+I JrQA== X-Gm-Message-State: APjAAAVOsjmYhUmHlTRmS4K82J8FxL/IUMpJNftTe+MHeI8XWHuhH7mu 4CK88E6IC7MnkC2Cu6PvVNeOYbNk6VI= X-Google-Smtp-Source: APXvYqzOmCiUXTrWHdjIiuQtJYRMXxxz4iATsQLzO7xwNPtpiutW13dczEtJ2gAuoAbL4rzCD4r+mQ== X-Received: by 2002:a5d:4d84:: with SMTP id b4mr21179945wru.102.1558724576034; Fri, 24 May 2019 12:02:56 -0700 (PDT) Received: from kali.home (lfbn-ren-1-314-196.w2-10.abo.wanadoo.fr. [2.10.15.196]) by smtp.gmail.com with ESMTPSA id f81sm2576958wmf.10.2019.05.24.12.02.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 May 2019 12:02:55 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Fri, 24 May 2019 21:02:43 +0200 Message-Id: <20190524190243.31508-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/kvm-unit-tests: fix build without ssp 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: Cyril Bur , Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Makefile tries to detect stack-protector which will result in build failures if ssp is not available so disable stack protector is SSP is not available through EXTRA_CFLAGS Fixes: - http://autobuild.buildroot.org/results/e6f767755ffdb5ecc014eb5ad7519814f075a60e Signed-off-by: Fabrice Fontaine --- package/kvm-unit-tests/kvm-unit-tests.mk | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/package/kvm-unit-tests/kvm-unit-tests.mk b/package/kvm-unit-tests/kvm-unit-tests.mk index 92d67fb34b..ac1bb1f7aa 100644 --- a/package/kvm-unit-tests/kvm-unit-tests.mk +++ b/package/kvm-unit-tests/kvm-unit-tests.mk @@ -39,16 +39,21 @@ ifneq ($(BR2_x86_64),y) KVM_UNIT_TESTS_CONF_OPTS += --cross-prefix="$(TARGET_CROSS)" endif +# Don't force -fstack-protector when SSP is not available in toolchain +KVM_UNIT_TESTS_MAKE_OPTS += \ + EXTRA_CFLAGS=$(if $(BR2_TOOLCHAIN_HAS_SSP),,-fno-stack-protector) + define KVM_UNIT_TESTS_CONFIGURE_CMDS cd $(@D) && ./configure $(KVM_UNIT_TESTS_CONF_OPTS) endef define KVM_UNIT_TESTS_BUILD_CMDS - $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) standalone + $(TARGET_MAKE_ENV) $(MAKE) $(KVM_UNIT_TESTS_MAKE_OPTS) -C $(@D) \ + standalone endef define KVM_UNIT_TESTS_INSTALL_TARGET_CMDS - $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \ + $(TARGET_MAKE_ENV) $(MAKE) $(KVM_UNIT_TESTS_MAKE_OPTS) -C $(@D) \ DESTDIR=$(TARGET_DIR)/usr/share/kvm-unit-tests/ \ install endef