[Scratchbox-devel] sbox compiler's command-line options
Andrey Khurri
andrey.khurri at hiit.fi
Thu Oct 5 13:41:07 EEST 2006
Hi there,
I am using Scratchbox to compile things for Maemo (Nokia 770). I've got
a trouble now concerning sbox-compiler. I tried to ask this question on
Maemo-developers mailing list but didn't get any answer there. So I
decided that it's more Scratchbox related issue and writing now here.
Sorry guys for double posting on two mailing lists.
Okay, here I go. It seems that sbox compiler does not understand an
option '-llibrary' when linking. It works elsewhere but in Scratchbox. I
tried both sbox-i686-linux-gcc and sbox-arm-linux-gcc compilers. Both
are 3.4.4 version (CodeSourcery ARM 2005q3-2).
Do you know if this option is supported at all by sbox compilers or
should it be invoked in some other way than '-llibrary' or '-l library'?
I also thought that sbox compilers may have less available command-line
options comparing to "normal" gcc. Can it be truth?
I checked that I have those libraries which I am trying to link
installed so it shouldn't be a point (libraries are located under
/usr/lib/ as a liblibrary.a)
The help messages for sbox compilers are not that helpful and contain
nothing related to '-llibrary' option.
Below is an output of the error for PC target:
sbox-i686-linux-gcc: -lgthread-2.0: linker input file unused because
linking not done
sbox-i686-linux-gcc: -lglib-2.0: linker input file unused because
linking not done
sbox-i686-linux-gcc: -lgobject-2.0: linker input file unused because
linking not done
sbox-i686-linux-gcc: -lglib-2.0: linker input file unused because
linking not done
sbox-i686-linux-gcc: ../libinet6/.libs/libinet6.a: linker input file
unused because linking not done
sbox-i686-linux-gcc: ../libhiptool/.libs/libhiptool.a: linker input file
unused because linking not done
cc1: error: unrecognized command line option "-lgthread-2.0"
cc1: error: unrecognized command line option "-lglib-2.0"
cc1: error: unrecognized command line option "-lgobject-2.0"
cc1: error: unrecognized command line option "-lglib-2.0"
Would appreciate your help,
Andrey
--
Andrey Khurri, Researcher
Helsinki Institute for Information Technology (HIIT)
Tel: +358 50 384 1510
Fax: +358 9 694 9768
andrey.khurri at hiit.fi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scratchbox.org/pipermail/scratchbox-devel/attachments/20061005/c5ef69ed/attachment.html
More information about the Scratchbox-devel
mailing list