From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.pbcl.net ([88.198.119.4] helo=hetzner.pbcl.net) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1Rj8Ac-0006k9-Fu for openembedded-core@lists.openembedded.org; Fri, 06 Jan 2012 12:41:14 +0100 Received: from elite.brightsigndigital.co.uk ([81.142.160.137] helo=[172.30.1.145]) by hetzner.pbcl.net with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1Rj83U-0003gx-Gj for openembedded-core@lists.openembedded.org; Fri, 06 Jan 2012 12:33:52 +0100 From: Phil Blundell To: Patches and discussions about the oe-core layer Date: Fri, 06 Jan 2012 11:33:51 +0000 In-Reply-To: <1325848065.20759.84.camel@ted> References: <04bb0f6bbd41ec9c2234df49130dba2346d9a3bf.1325744640.git.sgw@linux.intel.com> <1325848065.20759.84.camel@ted> X-Mailer: Evolution 3.0.2- Message-ID: <1325849632.28005.151.camel@phil-desktop> Mime-Version: 1.0 Subject: Re: [CONSOLIDATED PULL 04/28] ncurses: move libraries to base_libdir X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jan 2012 11:41:14 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Fri, 2012-01-06 at 11:07 +0000, Richard Purdie wrote: > On Fri, 2012-01-06 at 11:29 +0100, Enrico Scholz wrote: > > Saul Wold writes: > > > > > - f=${D}${libdir}/$i.so > > > + f=${D}${base_libdir}/$i.so > > > > this breaks builds because 'ld' does not search ${base_libdir}: > > > > | gcc -shared ... -ltermcap > > | /usr/bin/ld: cannot find -ltermcap > > | ERROR: Task 216 (virtual:native:.../readline/readline_6.2.bb, do_install) failed with exit code '1' > > | ERROR: 'virtual:native:.../readline/readline_6.2.bb' failed > > Note this is a -native problem, not a target library one. It looks to me like the same would probably occur on the target. The .so devel symlinks should be in ${libdir} not ${base_libdir} since the latter is indeed not in the linker's standard search path. There are some commented-out bits in bitbake.conf which would put it there: #export TARGET_LDFLAGS = "-L${STAGING_DIR_TARGET}${libdir} \ # -Wl,-rpath-link,${STAGING_DIR_TARGET}${libdir} \ # -Wl,-O1" but even then it would still fail for on-target builds that don't use bitbake and I think we should just fix ncurses to install itself into the correct place. Or everyone should use micro and avoid this whole class of problems. :-) p.