From patchwork Wed Sep 16 10:02:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Nosthoff X-Patchwork-Id: 1365134 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=busybox.net Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=heine.tech header.i=@heine.tech header.a=rsa-sha256 header.s=dkim header.b=Rkp6hzcs; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Brwdn242Fz9sSC for ; Wed, 16 Sep 2020 20:03:09 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 7B69A86FD0; Wed, 16 Sep 2020 10:03:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ilfcfn2LNAjB; Wed, 16 Sep 2020 10:03:07 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 081A986FD5; Wed, 16 Sep 2020 10:03:07 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 950B61BF40B for ; Wed, 16 Sep 2020 10:03:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 91E3D84D41 for ; Wed, 16 Sep 2020 10:03:06 +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 W95i3s4kNGPq for ; Wed, 16 Sep 2020 10:03:05 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.heine.tech (mail.heine.tech [195.201.24.99]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 7021D84D2E for ; Wed, 16 Sep 2020 10:03:05 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id CF7C118150E; Wed, 16 Sep 2020 12:02:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heine.tech; s=dkim; t=1600250578; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=ffHVclB/T6vvLpKktsXty1Hvvzv32qRUjvOzyChe468=; b=Rkp6hzcsCLbHXTKLzQpoOq7RcbaFfoBquCCagTvTo56WVTuZ0FKRF67Vg+7sE6C9dAue5e EBZRMtrxiZN5bCxURi5lz/I3j5L0uZU9zXSgqVbC4Nd2UJVxuACENhpAU7UcW0f0/vKj0h mTpx0JXHKGxW2PP35tJ6tthyn4BG8S4= To: buildroot@buildroot.org Date: Wed, 16 Sep 2020 12:02:09 +0200 Message-Id: <20200916100212.2903033-2-buildroot@heine.tech> In-Reply-To: <20200916100212.2903033-1-buildroot@heine.tech> References: <20200916100212.2903033-1-buildroot@heine.tech> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 Subject: [Buildroot] [PATCH 1/3] package/doxygen: disable shared libs for host 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: , From: Michael Nosthoff via buildroot Reply-To: Michael Nosthoff Cc: Michael Nosthoff , Bartosz Golaszewski Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" doxygen fails to build with BUILD_SHARED_LIBS=ON as it only for some targets honors this flag and links the rest static. So enforce BUILD_SHARED_LIBS=OFF for this package. Signed-off-by: Michael Nosthoff --- package/doxygen/doxygen.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/doxygen/doxygen.mk b/package/doxygen/doxygen.mk index 6d8727208a..ee8ae4fde4 100644 --- a/package/doxygen/doxygen.mk +++ b/package/doxygen/doxygen.mk @@ -11,4 +11,6 @@ DOXYGEN_LICENSE = GPL-2.0 DOXYGEN_LICENSE_FILES = LICENSE HOST_DOXYGEN_DEPENDENCIES = host-flex host-bison +HOST_DOXYGEN_CONF_OPTS += -DBUILD_SHARED_LIBS=OFF + $(eval $(host-cmake-package)) From patchwork Wed Sep 16 10:02:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Nosthoff X-Patchwork-Id: 1365135 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=busybox.net Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=heine.tech header.i=@heine.tech header.a=rsa-sha256 header.s=dkim header.b=LVIT0Tvq; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Brwdx3Ch0z9sSC for ; Wed, 16 Sep 2020 20:03:17 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 0365286FD5; Wed, 16 Sep 2020 10:03:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2NGuiaGNZxnW; Wed, 16 Sep 2020 10:03:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 4DDB986FD7; Wed, 16 Sep 2020 10:03:15 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id D35021BF40B for ; Wed, 16 Sep 2020 10:03:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id C6ABC20781 for ; Wed, 16 Sep 2020 10:03:13 +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 Y562w36MVnvs for ; Wed, 16 Sep 2020 10:03:12 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.heine.tech (mail.heine.tech [195.201.24.99]) by silver.osuosl.org (Postfix) with ESMTPS id E907D20002 for ; Wed, 16 Sep 2020 10:03:11 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id CADA218150D; Wed, 16 Sep 2020 12:03:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heine.tech; s=dkim; t=1600250586; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=HCtfC9S0XcZypV/bUmO26EpgPtGO90kQR4pEjc+wU+Q=; b=LVIT0TvqBxZbJEUvXHcIOLkHTt7WPKf7p1J6/tOCFYukzVw0Q+xYWQ1MJXzj50wnh/jIU0 c8ZxnOtXg0aDCZy9KBqLeHQG6tvD097ldLzq0Ae5g1LINow+IxcvbAjl89UzqZ2BcVXlm/ TNOBad/6cc7KnBH9B/IGr8OL6heMXpk= To: buildroot@buildroot.org Date: Wed, 16 Sep 2020 12:02:10 +0200 Message-Id: <20200916100212.2903033-3-buildroot@heine.tech> In-Reply-To: <20200916100212.2903033-1-buildroot@heine.tech> References: <20200916100212.2903033-1-buildroot@heine.tech> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 Subject: [Buildroot] [PATCH 2/3] package/{clang, lld}: host: disable shared_libs 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: , From: Michael Nosthoff via buildroot Reply-To: Michael Nosthoff Cc: Joseph Kogut , Michael Nosthoff , Romain Naour , Valentin Korenblit Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" similar to the llvm package disable shared libs for host build. Signed-off-by: Michael Nosthoff --- package/clang/clang.mk | 1 + package/lld/lld.mk | 3 +++ 2 files changed, 4 insertions(+) diff --git a/package/clang/clang.mk b/package/clang/clang.mk index d740af5322..ceb7de9afa 100644 --- a/package/clang/clang.mk +++ b/package/clang/clang.mk @@ -33,6 +33,7 @@ CLANG_CONF_OPTS += -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON # By setting BUILD_SHARED_LIBS to OFF, we generate multiple static # libraries (the same way as host's clang build) and finally # libclang.so to be installed on the target. +HOST_CLANG_CONF_OPTS += -DBUILD_SHARED_LIBS=OFF CLANG_CONF_OPTS += -DBUILD_SHARED_LIBS=OFF # Default is Debug build, which requires considerably more disk space diff --git a/package/lld/lld.mk b/package/lld/lld.mk index ea09c5d340..cd1a03c1d3 100644 --- a/package/lld/lld.mk +++ b/package/lld/lld.mk @@ -19,6 +19,9 @@ HOST_LLD_DEPENDENCIES = host-llvm # https://reviews.llvm.org/D57264 HOST_LLD_CONF_OPTS += -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON +# build as static libs as is done in llvm & clang +HOST_LLD_CONF_OPTS += -DBUILD_SHARED_LIBS=OFF + # GCC looks for tools in a different path from LLD's default installation path define HOST_LLD_CREATE_SYMLINKS mkdir -p $(HOST_DIR)/$(GNU_TARGET_NAME)/bin From patchwork Wed Sep 16 10:02:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Nosthoff X-Patchwork-Id: 1365136 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) 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=none (p=none dis=none) header.from=busybox.net Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=heine.tech header.i=@heine.tech header.a=rsa-sha256 header.s=dkim header.b=iWnoYK+E; 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 4Brwf24dYLz9sSC for ; Wed, 16 Sep 2020 20:03:22 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id BE54020002; Wed, 16 Sep 2020 10:03: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 iwXqLmATg+FI; Wed, 16 Sep 2020 10:03:18 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 94FF820334; Wed, 16 Sep 2020 10:03:18 +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 1BE1F1BF40B for ; Wed, 16 Sep 2020 10:03:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 17FD88632F for ; Wed, 16 Sep 2020 10:03: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 0Nhei7LHwm01 for ; Wed, 16 Sep 2020 10:03:16 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.heine.tech (mail.heine.tech [195.201.24.99]) by whitealder.osuosl.org (Postfix) with ESMTPS id 4F2DF84DDD for ; Wed, 16 Sep 2020 10:03:16 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 23B7A18150E; Wed, 16 Sep 2020 12:03:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heine.tech; s=dkim; t=1600250592; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=C3egGj68fsRzSC/7d/+JtMxsJlbKbmcgwZ9FJS81YIQ=; b=iWnoYK+EeKs5Mtz1hP8D+2tjZx/o5OBSgxKIe4Wbwjz/JtsncFSwO+P1vR5FThIDmPjFwI zEGTQgVC0FABTr3oQYlB5exReAM+kPkQ6gfDeqveRfFCuZzLE/7AJwul81UUUfjeCTOaBe e3QOsEjmgdR5dve+FD7DMZFcCzV395E= To: buildroot@buildroot.org Date: Wed, 16 Sep 2020 12:02:11 +0200 Message-Id: <20200916100212.2903033-4-buildroot@heine.tech> In-Reply-To: <20200916100212.2903033-1-buildroot@heine.tech> References: <20200916100212.2903033-1-buildroot@heine.tech> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 Subject: [Buildroot] [PATCH 3/3] package/pkg-cmake.mk: build host with shared libs 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: , From: Michael Nosthoff via buildroot Reply-To: Michael Nosthoff Cc: Michael Nosthoff , Samuel Martin Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" CMake offers the BUILD_SHARED_LIBS flag as a default parameter and most packages honor them. Similar to pkg-autotools.mk build host packages always with BUILD_SHARED_LIBS=ON. Signed-off-by: Michael Nosthoff --- package/pkg-cmake.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/pkg-cmake.mk b/package/pkg-cmake.mk index 57bfea9be5..dc545caed9 100644 --- a/package/pkg-cmake.mk +++ b/package/pkg-cmake.mk @@ -146,6 +146,7 @@ define $(2)_CONFIGURE_CMDS -DBUILD_TEST=OFF \ -DBUILD_TESTS=OFF \ -DBUILD_TESTING=OFF \ + -DBUILD_SHARED_LIBS=ON \ $$(CMAKE_QUIET) \ $$($$(PKG)_CONF_OPTS) \ )