This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Need help configuring uclibc as a native compiler for mipsel


On Mon, 12 Aug 2002, Syed Faisal Akber wrote:

> Hi Joel,
>
> If you are using both glibc and uC-libc on the same box, it would be
> better if you used a separate library.

No we won't have both libraries. The boxes will be sent to customers
with uClibc as the libraries.

> Also does your MIPS platform have an MMU?

Yes

> Are you going to statically link your application or use a shared library?

The stuff we send out uses shared libraries and is cross-compiled on
another machine. The customers may or may not do things statically.

> What OS are you running natively on the MIPS-EL box?

Linux 2.4.18

> You can still use your standard GCC if:
> a - force it not to use the standard libraries and link each library by
> hand on the command-line including libgcc
> b - replace glibc from the GCC installed location and replace it with
> uClibc

I don't think this will work. I need the standard libraries there to
run the existing compiler. This is an embedded system with only 8Mb
set aside for OS stuff. I don't have the space for two versions of
the libraries.

> c - don't replace glibc from the GCC installed location and place uClibc
> there with it (make sure uClibc and glibc have different names); then
> change the specs file for GCC to handle the two different libraries
> differently

Like the above case the current compiler uses shared objects and so
will anything it generates unless I can figure out how to force it
to be static.

> d - use a wrapper shell script to link uClibc manually by forcing it not
> to use the standard libraries

I understand all that. The compiler I want to build needs to be linked
against uClibc so that when it runs it doesn't look in /lib for libc-2.2.5.so
and so on. I don't know if there is an option to configure to tell it how
to do this. I suppose I could do a configure and then edit the Makefiles to
do statically link against the uClibc files but that is also something I'm
not 100% sure how to do.

-- 
Joel Coltoff

It does so look like her. -- Picasso

-- 
Joel Coltoff

It is appallingly obvious that our technology exceeds our humanity.
    -- Albert E. Einstein


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]