[oe] Issues building tinyXML
Jack Mitchell
ml at communistcode.co.uk
Thu Sep 6 15:08:29 UTC 2012
On 06/09/12 15:59, Phil Blundell wrote:
> On Thu, 2012-09-06 at 15:53 +0100, Jack Mitchell wrote:
>> I'm failing to be able to build tinyXML which it seems is required for
>> XBMC after it was dropped from their internal tree. The package just has
>> a Makefile and all in all seems a bit sketchy at best. Has anyone come
>> across an error like this before:
>>
>> DEBUG: Executing shell function do_compile
>> NOTE: make -j 7 -e MAKEFLAGS=
>> arm-poky-linux-gnueabi-ld
>> --sysroot=/home/jack/Projects/poky-rasp/raspberry/tmp/sysroots/raspberrypi
>> -o xmltest -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed tinyxml.o
>> tinyxmlparser.o xmltest.o tinyxmlerror.o tinystr.o
>> arm-poky-linux-gnueabi-ld: unrecognized option '-Wl,-O1'
>> arm-poky-linux-gnueabi-ld: use the --help option for usage information
>> make: *** [xmltest] Error 1
> It's using ${LD} where it should be using ${CCLD}. This is, admittedly,
> confusing since one would tend to naïvely assume that ${LDFLAGS} is
> intended for consumption by ${LD} but that is not in fact the case.
>
> I'm not actually sure that there are any places where ${LD} is the right
> thing to use. Maybe that variable should be deleted.
>
> p.
So, would the best way to fix it be something like:
do_compile() {
run_oemake LD="${CCLD}"
}
I'm really only just getting into this so please excuse my naivety.
Thanks,
--
Jack Mitchell (jack at embed.me.uk)
Embedded Systems Engineer
http://www.embed.me.uk
--
More information about the Openembedded-devel
mailing list