Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot]  Changing uclibc runtime prefix
@ 2007-12-21 12:19 zevv
       [not found] ` <200712211830.lBLIUfOI014955@orion.sysdev.org>
  0 siblings, 1 reply; 2+ messages in thread
From: zevv @ 2007-12-21 12:19 UTC (permalink / raw)
  To: buildroot


Hello all,

I'm trying to deploy uClibc on a system with another C library on it, so
that I'll be able to run binaries linked to either one of the libc's.

I'd like to install uClibc in /usr/i386-uclibc/*, and configure the
cross-gcc and binutils to link against this library. I'm using buildroot to
generate the toolchain only.

Problem is that I can't get buildroot to configure uclibc and gcc the way I
want. My configuration
is as follows:

buildroot configuration (make menuconfig)

  CONFIG_BR2_STAGING_DIR = /usr/i386-uclibc/

uclibc configuration (make uclibc-menuconfig)

  CONFIG_SHARED_LIB_LOADER_PREFIX = /usr/i386-uclibc/lib  
  CONFIG_RUNTIME_PREFIX  /usr/i386-uclibc/

The result is a uClibc and toolchain installed in /usr/i386-uclibc as
expected. The ld-library loader is installed in
/usr/i386-uclibc/lib/ld-uClibc.so.0 as well, just as it should.

The problem is that all binaries compiled with this toolchain, are still
expecting the ld library loader to be /lib/ld-uClibc.so.0, instead of
/usr/i386-uclibc/lib/ld-uClibc.so.0 !

My only conclusion is that I'm probably doing something wrong or have a
wrong understanding of what's happening here. Any tips on how to get this
working as described above ?

Thank you very much for your time,

Ico


-- 
View this message in context: http://www.nabble.com/Changing-uclibc-runtime-prefix-tp14454607p14454607.html
Sent from the BuildRoot mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] Changing uclibc runtime prefix
       [not found] ` <200712211830.lBLIUfOI014955@orion.sysdev.org>
@ 2007-12-21 19:03   ` Tony Borras
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Borras @ 2007-12-21 19:03 UTC (permalink / raw)
  To: buildroot

On Fri, 21 Dec 2007 10:30:41 -0800 (PST)
TonyB <tonyb@orion.sysdev.org> wrote:

> I'd like to install uClibc in /usr/i386-uclibc/*, and
> configure the cross-gcc and binutils to link against this
> library. I'm using buildroot to generate the toolchain only.
> 
> Problem is that I can't get buildroot to configure uclibc
> and gcc the way I want. My configuration
> 
> The problem is that all binaries compiled with this
> toolchain, are still expecting the ld library loader to be
> /lib/ld-uClibc.so.0, instead of
> /usr/i386-uclibc/lib/ld-uClibc.so.0 !


Buildroot has limited buildtime auto-configuration editing
capabilities of the runtime configs it creates. I suspect
that it might not be smart enough to configure your custom
/etc/ld.so.conf.

So try checking the created ld.so.conf to include your
/usr/i386-uclibc/lib path, as well as any other paths for your
GNU libc's, that you are also using...

TonyB


There are 10 types of people in this world, those that read
binary and those who don't!

--
  __      __  _     I N C.               http://www.sysdev.org
/ __|\\// __||  \  __   __          /         tonyb at sysdev.org
\__ \ \/\__ \||)|/ O_)\/ /        \/  System Tools / Utilities
|___/ || ___/|_ /\___|\_/        WIntel / Linux Device Drivers

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-12-21 19:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-21 12:19 [Buildroot] Changing uclibc runtime prefix zevv
     [not found] ` <200712211830.lBLIUfOI014955@orion.sysdev.org>
2007-12-21 19:03   ` Tony Borras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox