From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (dan.rpsys.net [93.97.175.187]) by mx1.pokylinux.org (Postfix) with ESMTP id D53624C811AE for ; Wed, 26 Jan 2011 03:40:51 -0600 (CST) Received: from localhost (dan.rpsys.net [127.0.0.1]) by dan.rpsys.net (8.14.2/8.14.2/Debian-2build1) with ESMTP id p0Q9gkEm025827; Wed, 26 Jan 2011 09:42:47 GMT X-Virus-Scanned: Debian amavisd-new at dan.rpsys.net Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id knfWq24B2b3t; Wed, 26 Jan 2011 09:42:46 +0000 (GMT) Received: from [192.168.1.45] (tim [93.97.173.237]) (authenticated bits=0) by dan.rpsys.net (8.14.2/8.14.2/Debian-2build1) with ESMTP id p0Q9gg8p025819 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 26 Jan 2011 09:42:44 GMT From: Richard Purdie To: "Lu, Lianhao" In-Reply-To: References: Date: Wed, 26 Jan 2011 09:40:23 +0000 Message-ID: <1296034823.27814.2169.camel@rex> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 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 09:40:52 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Wed, 2011-01-26 at 13:56 +0800, Lu, Lianhao wrote: > 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? Its new, yes and means that the path needs to be prefixed by the sysroot. Libtool will add that prefix itself automatically if there is a sysroot set. > 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. The = should replace the need to make this replacement. > 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! Correct. We just have to ensure that libtool 2.4 with fixed sysroot support is being used (libtool-nativesdk has the fixes). Cheers, Richard