From patchwork Sun May 2 10:50:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 1472761 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.137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.a=rsa-sha256 header.s=badeba3b8450 header.b=FIYhyoO4; dkim-atps=neutral Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FY2vc01Pfz9sPf for ; Sun, 2 May 2021 20:50:50 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 9DCFB40515; Sun, 2 May 2021 10:50:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T9sG4UfEIIKo; Sun, 2 May 2021 10:50:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id CF5F94051B; Sun, 2 May 2021 10:50:45 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 6A8CD1BF39D for ; Sun, 2 May 2021 10:50:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 5A35A40404 for ; Sun, 2 May 2021 10:50:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (1024-bit key) header.d=gmx.net Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CfRdSjLbDO1U for ; Sun, 2 May 2021 10:50:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by smtp2.osuosl.org (Postfix) with ESMTPS id 4EFFC40401 for ; Sun, 2 May 2021 10:50:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1619952639; bh=Fi3DLwTpa+IowhnupGIN2dH1Lw9mI2HUwD98gt6GCEA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=FIYhyoO4tBCdQJNwqeMqFaJVWeFoDI3r30TOUyzmXZ8yIY1LiqOv6zWeGRxQlCLL4 WlDjmCEe5+rLP58hVICZu6KNcPX6vEXagUmPMP05LoEblgV0ruOLyUYJWjjHvcZUQe TGABsvlKY3FFa6sDTDvqJDu2A1ao+LEiMW+tXAPo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.fritz.box ([62.216.209.31]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MZktZ-1m6hPV3IU3-00WoGx; Sun, 02 May 2021 12:50:38 +0200 From: Peter Seiderer To: buildroot@buildroot.org Date: Sun, 2 May 2021 12:50:37 +0200 Message-Id: <20210502105038.19483-1-ps.report@gmx.net> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:L7LWs9KzdU5HhRsNeQY1T/88hdj380MZNWHScJF84NXIHLREOG2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UO1vbsbm9hzBAqozALdNJtR0zbfM99j1oEtXBiuLIR2dsEPzi0 5+RiJhPJDReEWlhcHARlhvTTcwtosmGs59kcbE51P3GbgDvqXBQOP9o7eQn+bqlIj/tBue6aN 8kkLluAc5JbUdnoLCfTF9buypbgO1ZMdOGncju9DdGdZ8bDN3eupNvU64YjgpfOoP6SrDigYt LLDrvoYrKwA3wv6YPc+g4Eor/t98TSiDKGYq/+/2HZ8/fwebFBuHoi04v+TGgeDKc1uvOxvac BKJYiNaKlN4ZUgK2cbL0nWy/QzsAebNvUE6gxzj7d0VutIT8azGSPaVtyOVt9HMoh30m2WLFi TK32yaXjj/xPoMIqUsJxkiWsnM3+F2AS7MmWpSEiBslUj2Vpbuo7MskTbzGOqWxwJ4KS4= Subject: [Buildroot] [PATCH v2 1/2] package/libtomcrypt: add pkgconfig support 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: Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Peter Seiderer --- Changes v1 -> v2: - use libtomcrypt provided libtomcrypt.pc.in template file --- package/libtomcrypt/libtomcrypt.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/libtomcrypt/libtomcrypt.mk b/package/libtomcrypt/libtomcrypt.mk index fccd4b051c..3d166a6854 100644 --- a/package/libtomcrypt/libtomcrypt.mk +++ b/package/libtomcrypt/libtomcrypt.mk @@ -27,6 +27,10 @@ define LIBTOMCRYPT_INSTALL_STAGING_CMDS $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(STAGING_DIR)" \ PREFIX=/usr NODOCS=1 INSTALL_USER=$(shell id -u) \ INSTALL_GROUP=$(shell id -g) install + sed -e 's,^prefix=.*,prefix=/usr,' \ + -e 's,^Version:.*,Version: $(LIBTOMCRYPT_VERSION),' \ + $(@D)/libtomcrypt.pc.in \ + > $(STAGING_DIR)/usr/lib/pkgconfig/libtomcrypt.pc endef $(eval $(generic-package)) From patchwork Sun May 2 10:50:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 1472762 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=smtp2.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.a=rsa-sha256 header.s=badeba3b8450 header.b=GnCAg8JP; dkim-atps=neutral Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FY2vp32LDz9sPf for ; Sun, 2 May 2021 20:51:02 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 766E740409; Sun, 2 May 2021 10:51:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pVT0w0OwFs5I; Sun, 2 May 2021 10:50:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id E353640401; Sun, 2 May 2021 10:50:58 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 6EB911BF39D for ; Sun, 2 May 2021 10:50:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 68D5D40401 for ; Sun, 2 May 2021 10:50:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id doPLWjNhyMv2 for ; Sun, 2 May 2021 10:50:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by smtp2.osuosl.org (Postfix) with ESMTPS id 37B7B4015B for ; Sun, 2 May 2021 10:50:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1619952639; bh=DWji031hVa9ErQdjrOVb4bfIT2A3Fxi+kGpYnfHvl2U=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=GnCAg8JPMoxoBR6l2dwjSfqDwmgwzSjGSVCNfxpJ4LW1ZnysazX8SkJ47auE72YM8 fH8VESq3u89hFXDrBj3UTaNElj/MqzlfQKdQCBpnDX790QWTYMGT9BFsIf3dC+3CuL +2EZiyMmkhUrz3jJBc1QjAOHyXWB6KYEomfCC1pA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.fritz.box ([62.216.209.31]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MtwUw-1lICRv0XLo-00uLaC; Sun, 02 May 2021 12:50:39 +0200 From: Peter Seiderer To: buildroot@buildroot.org Date: Sun, 2 May 2021 12:50:38 +0200 Message-Id: <20210502105038.19483-2-ps.report@gmx.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210502105038.19483-1-ps.report@gmx.net> References: <20210502105038.19483-1-ps.report@gmx.net> MIME-Version: 1.0 X-Provags-ID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UpevTRIrM08GZVfAmtO1CxuSQxvvJv bNVVFI/k817WaOeUrzDIZZq5mTyds8tX3cULeqBWS2A/k/MMdHR8H06gHh9fe7SY63DECmIA8 yuRJ/RfZSjoN5c5R2dXm6PKML/iGuclknwwidaGFMHIXoFyBfLbJ2GFt5iu9DYSng7ZX80uEB R1NB6m3haHuU5AqBTEf00zcwJ6i320yb0vPp9QuYuGTXw6hbG5UBuWDcEhTlvaRa0eeWVxTHS XCZ4PSnK/0FcVZ5PZ2eKATekBXygeVWfTYaDEPM9mDU03lou+jSJZhp+VUV02/PPvq7WuXwCZ SEbXCk7pMYruZHScpUn2mgppjNxDZmkj3xzcROiSvMSIGPPafdQnEM8iXigLxRBf6dxV9OqsC IbQVsu7RwbI1LMdN7yI7upzJYNL11Q52+cpWc6MEX37RJ/2CjvKYXTugEc36/DEt/nF9Y= Subject: [Buildroot] [PATCH v2 2/2] package/libtomcrypt: compile with -fPIC to enable linking to dynamic libraries/exectuables 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: Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes: .../x86_64-buildroot-linux-gnu/bin/ld: .../host/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libtomcrypt.a(md5.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC Signed-off-by: Peter Seiderer --- Changes v1 -> v2: - add -fPIC only for non static builds (suggested by Arnout Vandecappelle) --- package/libtomcrypt/libtomcrypt.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/libtomcrypt/libtomcrypt.mk b/package/libtomcrypt/libtomcrypt.mk index 3d166a6854..d1cf552abd 100644 --- a/package/libtomcrypt/libtomcrypt.mk +++ b/package/libtomcrypt/libtomcrypt.mk @@ -19,6 +19,10 @@ LIBTOMCRYPT_IGNORE_CVES += CVE-2019-17362 LIBTOMCRYPT_CFLAGS = -I./src/headers $(TARGET_CFLAGS) -DLTC_SOURCE -DLTM_DESC +ifeq ($(BR2_STATIC_LIBS),) +LIBTOMCRYPT_CFLAGS += -fPIC +endif + define LIBTOMCRYPT_BUILD_CMDS $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) CFLAGS="$(LIBTOMCRYPT_CFLAGS)" endef