From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx1.pokylinux.org (Postfix) with ESMTP id 3CE094C811AE for ; Wed, 26 Jan 2011 00:18:25 -0600 (CST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 25 Jan 2011 22:18:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.60,379,1291622400"; d="scan'208";a="651248997" Received: from unknown (HELO [10.255.14.104]) ([10.255.14.104]) by fmsmga002.fm.intel.com with ESMTP; 25 Jan 2011 22:18:24 -0800 Message-ID: <4D3FBCB0.1030609@intel.com> Date: Tue, 25 Jan 2011 22:18:24 -0800 From: Scott Garman User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: "Lu, Lianhao" References: In-Reply-To: Cc: "poky@yoctoproject.org" Subject: Re: Is the grammar of .la files changed in new libtool 2.4? X-BeenThere: poky@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Poky build system developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jan 2011 06:18:25 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 01/25/2011 09:56 PM, Lu, Lianhao wrote: > Hi Scott, > > I'm wondering whether the grammar of the .la files generated by new > libtool 2.4 is different from the old ones. Take the file > libxcb-res.la generated by libxcb for example, it contains a line: > > dependency_libs=' =/usr/lib/libxcb.la =/usr/lib/libXau.la' > > While in the old libxcb.la file, this line appeared to be > > dependency_libs=' /usr/lib/libxcb.la /usr/lib/libxcb.la' > > Is the "=" a new grammar for liblool 2.4? Because in meta-toolchain, > it needs to fix these .la files by replacing all the "/usr/lib" to > "${SDKTARGETSYSROOT}/usr/lib", etc. This new "=" causes the original > regular expression not work. Hi Lianhao, I'm not sure if the "=" grammar changed with Libtool 2.4 or not, as I haven't spent any time digging into Libtool when we used 2.2 a while ago. I do believe you will run into problems if you try to set dependency_libs to =/usr/lib. The reason is that you should not be adding system default directories to dependency_libs. =${SDKTARGETSYSROOT}/usr/lib should be fine. Where is the regular expression you're referring to above? Since Poky has been using Libtool 2.4 for a while now (I simply enabled sysroot support), I would think this error would have cropped up much earlier. > b.t.w. Do we still need the code in meta-toolchain to fix broken .la > files? According to my understanding, the new sysroot support in > libtool 2.4 should solve this problem, right? Thanks! Again, which code snippet are you referring to (file and line #, please)? There are some changes I made to remove .la munging code, and I'm pretty sure Richard reviewed it giving consideration to how it would impact the meta-toolchain builds. Once I have the code sections to examine we should be able to iron this out more clearly. Thanks, Scott -- Scott Garman Embedded Linux Distro Engineer - Yocto Project Intel Open Source Technology Center