Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 6DF02E00503; Mon, 29 Aug 2016 11:10:13 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 17353E0044F for ; Mon, 29 Aug 2016 11:10:11 -0700 (PDT) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP; 29 Aug 2016 11:10:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,597,1470726000"; d="scan'208";a="2371988" Received: from jzhang80-mac02.jf.intel.com ([10.24.2.112]) by orsmga005.jf.intel.com with ESMTP; 29 Aug 2016 11:10:11 -0700 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) From: Jianxun Zhang In-Reply-To: <85d58522-48a1-7bfe-f846-aa9255f2fbbe@gmail.com> Date: Mon, 29 Aug 2016 11:10:21 -0700 Message-Id: <91E6AEA1-C95E-4D16-BAE9-6F1437A9D7D4@linux.intel.com> References: <1472251502-16136-1-git-send-email-jianxun.zhang@linux.intel.com> <85d58522-48a1-7bfe-f846-aa9255f2fbbe@gmail.com> To: Khem Raj X-Mailer: Apple Mail (2.3124) Cc: yocto@yoctoproject.org Subject: Re: [PATCH] Makefile: remove static linking in Linux build X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2016 18:10:13 -0000 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable > On Aug 26, 2016, at 4:25 PM, Khem Raj wrote: >=20 >=20 >=20 > On 8/26/16 3:45 PM, Jianxun Zhang wrote: >> The removed static linking was for a desire to make rmc run >> on systems where c libraries are not provided. >>=20 >> But it is nothing wrong to dynamically link rmc with libraries. >> We also don't have to hardcode the way of linking in Makefile >> since people can specify it in RMC_CFLAGS passed to make command. >>=20 >=20 > have you tested the dynamic version ? Khem, In RMC, two different test stages are defined in workflow. Please refer = to "Patch submission & Maintenance=94 in README in rmc project. This patch to upstream rmc project was tested against rmc internal test = suite (1st test stage) with yocto minimal images, RMC binaries built = with the image, and another pending hash-style patch in recipe. See = below. A QA checker of hash style in OE will fail once the --static is gone = because it only expects gnu_hash for SYMTAB in dynamic section in ELF. = The patch of hash issue in rmc recipe is under test (2nd test stage) = with builtin examples in meta-intel for the next rmc revision update. = This fix for an OE-specifc enforcement should be another step beyond = this upstream patch=92s submission and rmc project. But I probably should mention it in submission for a better clarity. = Hope the info could help. Feel free to let me know anything I missed. Thanks! >=20 >> Signed-off-by: Jianxun Zhang >> --- >> Makefile | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >>=20 >> diff --git a/Makefile b/Makefile >> index e873af6..f152829 100644 >> --- a/Makefile >> +++ b/Makefile >> @@ -17,7 +17,7 @@ RMC_INSTALL_BIN_PATH :=3D = $(RMC_INSTALL_PREFIX)/bin/ >>=20 >> ALL_OBJS :=3D $(RMC_TOOL_OBJ) $(RMCL_OBJ) $(RSMP_OBJ) >>=20 >> -CFLAGS :=3D -static -Wall -O2 -Iinc $(RMC_CFLAGS) >> +CFLAGS :=3D -Wall -O2 -Iinc $(RMC_CFLAGS) >>=20 >> all: rmc librmcl librsmp >>=20 >>=20