From patchwork Thu Jul 12 06:52:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Damien_Th=C3=A9bault?= X-Patchwork-Id: 942833 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.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=vitec.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=vitec.com header.i=@vitec.com header.b="P5MJvqJ5"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41R72z1XRfz9ryt for ; Thu, 12 Jul 2018 17:33:30 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 1692C882CC; Thu, 12 Jul 2018 07:33:25 +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 EKImifaXefdz; Thu, 12 Jul 2018 07:33:22 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id A795A87F16; Thu, 12 Jul 2018 07:33:22 +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 E794B1C0D92 for ; Thu, 12 Jul 2018 07:33:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E55F587A78 for ; Thu, 12 Jul 2018 07:33:20 +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 K83izCyj83lf for ; Thu, 12 Jul 2018 07:33:19 +0000 (UTC) X-Greylist: delayed 00:14:09 by SQLgrey-1.7.6 Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20061.outbound.protection.outlook.com [40.107.2.61]) by whitealder.osuosl.org (Postfix) with ESMTPS id 0FCB387A58 for ; Thu, 12 Jul 2018 07:33:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vitec.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3WEca2245RvC9kmkTce6tvjHZRHRr7Bc6qIgQLHa+8U=; b=P5MJvqJ5+BKj29CdpVJASYBzDwM5Ot8lBNxSnlleQjevPzU/cGq5i8qohqEqSCDFvJ7ESVQ04Q/QMZNica1/aLQZiE3faog3NSiAJs3V2FX0LOHp+UgTWP/VzBh7htOrJ8SDNybLUT4Z/I3NHfriFaS8MUhALzunJpScrtOp6aY= Received: from HE1PR05MB1436.eurprd05.prod.outlook.com (10.162.253.142) by HE1PR05MB1819.eurprd05.prod.outlook.com (10.166.86.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.930.22; Thu, 12 Jul 2018 06:52:14 +0000 Received: from HE1PR05MB1436.eurprd05.prod.outlook.com ([fe80::e95e:528:f5a0:b8f5]) by HE1PR05MB1436.eurprd05.prod.outlook.com ([fe80::e95e:528:f5a0:b8f5%4]) with mapi id 15.20.0930.022; Thu, 12 Jul 2018 06:52:14 +0000 From: =?utf-8?q?Damien_Th=C3=A9bault?= To: "buildroot@busybox.net" Thread-Topic: [PATCH] Use TARGET_LDFLAGS for cmake shared and module libraries Thread-Index: AQHUGazduLWq3Xw/+kCPylpTqBhQ6g== Date: Thu, 12 Jul 2018 06:52:13 +0000 Message-ID: <205aa775588289b4db7f1ce200b32a9c1500b6ba.camel@vitec.com> Accept-Language: en-US, fr-FR Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: Evolution 3.28.3 authentication-results: spf=none (sender IP is ) smtp.mailfrom=damien.thebault@vitec.com; x-originating-ip: [46.218.234.67] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; HE1PR05MB1819; 7:BzebYbGeZQ2Cd3D8ECPo4StCCwwVaAtU6gLiI/RoQn3sUje4nXdbrfgZfw/wBiKV9qy9WdDMNZTb9cAGdvvJvRYYdLd+K4cpxu+J24c4c0aCigQtJE1wcsZCICTqhR9a1BKsSNMlMRAuqpEaqDWKaAglITBVCAXTDsGFMWTLrk7j8ZqW9QC089XDhi6N0b3PLsioRX0s9nwYOS6D90Lg90wrgF7GfY/n8XWauXQNIXbZDjGv3FdtN0KldDGz17lb; 20:qfDFIxntdWw5Nac4Ztv5Cls/lhsHipdJQ+KZeCVbZ0eR/ScAFbOWgvzxs0LIGqFCrL0pwFKpAIQzerQpIm4PB+ZsT4QsKmfM6ujjpO8jjmyFJ+v9KSj1rw3nFBD0pFv94+OP4nAhkcfiLP11FTfDecln3ojhexA1DZsWRDfJWY4pZM6g/d40fb4S41dV7OWWrlbb7qhqiSjPCpEG0v4NbCpMkS0M32UhqiS7e3xMtbSBzA0N4uHIROs2lwICZveT; 23:Y9CYpVNtby5Mvt0B6z84MRnSX6ZCHoJHliuhEkJpVg3IwJziYpxBtoHq4NggdirXXJcfj6kM8lj7Q9iFFQXSQdUmD4K2JkKE9yFM4TwFpohlv98QjYXHkAZ7Tstsg2kGNUd3JDLvfxBdGh+crK6OvA== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 8e6c3c7e-74a8-42cd-5776-08d5e7c3ffea x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600053)(711020)(2017052603328)(7153060)(7193020); SRVR:HE1PR05MB1819; X-MS-TrafficTypeDiagnostic: HE1PR05MB1819:|HE1PR05MB1819: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:HE1PR05MB1819; BCL:0; PCL:0; RULEID:; SRVR:HE1PR05MB1819; x-forefront-prvs: 0731AA2DE6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(376002)(39850400004)(396003)(346002)(136003)(189003)(199004)(5660300001)(7736002)(6436002)(6506007)(102836004)(53936002)(8936002)(50226002)(3846002)(6116002)(81156014)(305945005)(8676002)(81166006)(1857600001)(118296001)(1730700003)(478600001)(186003)(5250100002)(97736004)(26005)(14454004)(2501003)(316002)(2906002)(105586002)(106356001)(85202003)(2351001)(68736007)(25786009)(36756003)(2900100001)(99286004)(476003)(5640700003)(6512007)(85182001)(66066001)(486006)(2616005)(256004)(6486002)(86362001)(6916009)(99106002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR05MB1819; H:HE1PR05MB1436.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: vitec.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: yhLQixQxX3ztNGD9CQUh6UlzvibYLsyDAotiu9oi1FE5qMeN7znyadvz5Ekc5P5eSV+CCr33UI4yDq29HEPa0yMXpnlKrfpIvMKmXleQc4KCjYZbQTOErUUxdvWdLqLqG9dMFplQ/7Mu2yzRutHY+Z85/gXGPtdfAitJ9rE7bZnWoGacMzsWgH7fvRakOz2kTjwv5G1Qdy+w3t1I2atRzzCImGDNO9eTk08hsineidS9tRB/zVriveXY24U2HhKDPo/uD1oizxDnB/GjSzGPsx20LBhXXJFCTgBORw/rpcUFkUiWNOS8XzGlhcVpU/dmMldXQKyFv5UfN+WZ2iViiBhAgxrSBgcOlhl683a0220= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-ID: MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 8e6c3c7e-74a8-42cd-5776-08d5e7c3ffea X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jul 2018 06:52:13.9879 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 417d3214-b611-4fca-a1d5-e4446a9f50f4 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR05MB1819 X-OriginatorOrg: vitec.com Subject: [Buildroot] [PATCH] Use TARGET_LDFLAGS for cmake shared and module libraries X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" With cmake packages, we are only using TARGET_LDFLAGS for executables and not for shared libraries. This patch adds CMAKE_SHARED_LINKER_FLAGS and CMAKE_MODULE_LINKER_FLAGS to the cmake toolchain file so that buildroot TARGET_LDFLAGS are used for shared and module libraries. Signed-off-by: Damien Thébault --- support/misc/toolchainfile.cmake.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/support/misc/toolchainfile.cmake.in b/support/misc/toolchainfile.cmake.in index 1f5d2371ed..6f3c8ca971 100644 --- a/support/misc/toolchainfile.cmake.in +++ b/support/misc/toolchainfile.cmake.in @@ -45,6 +45,8 @@ set(CMAKE_BUILD_TYPE @@CMAKE_BUILD_TYPE@@ CACHE STRING "Buildroot build configur set(CMAKE_C_FLAGS "@@TARGET_CFLAGS@@" CACHE STRING "Buildroot CFLAGS") set(CMAKE_CXX_FLAGS "@@TARGET_CXXFLAGS@@" CACHE STRING "Buildroot CXXFLAGS") set(CMAKE_EXE_LINKER_FLAGS "@@TARGET_LDFLAGS@@" CACHE STRING "Buildroot LDFLAGS for executables") +set(CMAKE_SHARED_LINKER_FLAGS "@@TARGET_LDFLAGS@@" CACHE STRING "Buildroot LDFLAGS for shared libraries") +set(CMAKE_MODULE_LINKER_FLAGS "@@TARGET_LDFLAGS@@" CACHE STRING "Buildroot LDFLAGS for module libraries") set(CMAKE_INSTALL_SO_NO_EXE 0)