From patchwork Tue Apr 21 18:35:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1274467 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.138; helo=whitealder.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.a=rsa-sha256 header.s=20161025 header.b=BwXEOHQN; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 496C031Nzhz9sSG for ; Wed, 22 Apr 2020 04:34:27 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9FD00868B2; Tue, 21 Apr 2020 18:34:25 +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 kVRivm3cxQD8; Tue, 21 Apr 2020 18:34:25 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 099DE86833; Tue, 21 Apr 2020 18:34:25 +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 AC68E1BF3B9 for ; Tue, 21 Apr 2020 18:34:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A960086833 for ; Tue, 21 Apr 2020 18:34:23 +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 lCY5pQsY7gdV for ; Tue, 21 Apr 2020 18:34:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by whitealder.osuosl.org (Postfix) with ESMTPS id EA03E8638F for ; Tue, 21 Apr 2020 18:34:22 +0000 (UTC) Received: by mail-wr1-f41.google.com with SMTP id s10so8557435wrr.0 for ; Tue, 21 Apr 2020 11:34:22 -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=vYfx2QUjJIbKnYnDAz+A8wPQbOXVjtH8i7pO3VPPPU8=; b=BwXEOHQNtt5YiE4nEBLk9WMnev2Hi7UOFWo0ESePEhdIy1RcYBamB66i+Ae/+IKx/t EZ51uV4NH6Xt6WorDoLxIKC0C/qLyVb8GVbz0AEgkiRvLC+K4ACE5lCgnIH00+tVuVdB PuOidzFor3Yohp3e3clOmbv9AoseaWIpv2LdqE1+THTyw0nMmYQurFrA7/0V8ntTUHfU Pi5v4jOYickMP2W7VX5a6TWDpOm9V0tqp/cgDOWaCOFf5G+DqpwykL8klnKNcHFkoxpG +6ogmhyNPUD4RW76WlCHFdBg3AnsJWh8aSPJxiUVngWuJ9MyB/iyu5UPivgnfWNyvZty TLvA== 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=vYfx2QUjJIbKnYnDAz+A8wPQbOXVjtH8i7pO3VPPPU8=; b=JzHE7//wnggdR8lOt5FDdILstFiE6r5mKhxALL0H8q9FvadxhObplpUA+xwpETC0o5 /CUSuojcYfPRZI/YzjYuwU4vDJaNXq+8YnLmun7NsxpNjLxAQMhQ9dNYsImCFL+vMke9 ttGbQeGF2RJoOf+SOwhATJSJctSYpEx7uCDC0g6EfFlpYF4u/ZA1YE2tUUulZppTO/57 21lAeu2I3m81Pn/xB1he/mez1I1TFHqHHfxIVrrCIXFz+8KVfQAD7cz8qr6l6DbpkqyA sjTkwH6XxPv84dr41Lhq2VPlHk0dewhmCKg6FbMtVmHFvFvfRUstXYmMshPW5JHQhgHY mx/g== X-Gm-Message-State: AGi0PuY6rgrlL07LOGk9+I8qM5J+t7j7J8cu/7dQjSGok2BL2rYXnmFV plfRaYhaFyCvwXUTIcpCuaQGmlhV X-Google-Smtp-Source: APiQypJHWtfJ/OmSMeMhr4BakgV3MPIN/isXtLmhXBWWIgyRt8iOqEfXaVDlGUhaLgu2DebNqWY9RQ== X-Received: by 2002:adf:8543:: with SMTP id 61mr23866100wrh.243.1587494061146; Tue, 21 Apr 2020 11:34:21 -0700 (PDT) Received: from kali.home (lfbn-ren-1-403-35.w2-10.abo.wanadoo.fr. [2.10.23.35]) by smtp.gmail.com with ESMTPSA id f2sm4876767wro.59.2020.04.21.11.34.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Apr 2020 11:34:20 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Tue, 21 Apr 2020 20:35:43 +0200 Message-Id: <20200421183543.4135516-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/yaml-cpp: build shared library if needed 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" yaml-cpp builds only a static library by default, this will raise a build failure with upcoming mongodb 4.2.x as reported by Ryan Barnett due to mongodb linking with a static library that obviously will miss -fPIC Signed-off-by: Fabrice Fontaine --- package/yaml-cpp/yaml-cpp.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/yaml-cpp/yaml-cpp.mk b/package/yaml-cpp/yaml-cpp.mk index 906e554ed7..beb8d6f55f 100644 --- a/package/yaml-cpp/yaml-cpp.mk +++ b/package/yaml-cpp/yaml-cpp.mk @@ -15,4 +15,10 @@ YAML_CPP_CONF_OPTS += \ -DYAML_CPP_BUILD_TESTS=OFF \ -DYAML_CPP_BUILD_TOOLS=OFF +ifeq ($(BR2_STATIC_LIBS),y) +YAML_CPP_CONF_OPTS += -DYAML_BUILD_SHARED_LIBS=OFF +else +YAML_CPP_CONF_OPTS += -DYAML_BUILD_SHARED_LIBS=ON +endif + $(eval $(cmake-package))