logo       

Re: When you struggle , you achieve...: msg#00084

lib.uclibc.general

Subject: Re: When you struggle , you achieve...

On Mon Oct 14, 2002 at 12:48:21PM -0400, Mr Pink wrote:
> Is there anyway I could have set the SHARED_LIB_LOADER_PATH to something
> else than the path that is going to be used on the target embedded machine.
>
> In fact I would want to have the uClibc libraries in some other place than
> /lib on my development computer
> Read in : /uclibc/lib for example.
> but I want to install th lib in /lib on the target computer ???
> Is there anyway to do it ???

What I generally do is set up what I call a "staging directory",
i.e. suppose STAGING_DIR=/home/andersen/myproject/build/stage
then I would set

SHARED_LIB_LOADER_PATH=/lib
DEVEL_PREFIX=$(STAGING_DIR)
SYSTEM_DEVEL_PREFIX=$(STAGING_DIR)
DEVEL_TOOL_PREFIX=$(STAGING_DIR)/usr

Then when I do a 'make install' it will install the uClibc
development environment into the staging directory. When you
compile stuff, you then use $(STAGING_DIR)/bin/i386-uclibc-gcc as
your compiler and it will compile stuff using the libraries
living under $(STAGING_DIR)/lib. These binaries expect to have
the uClibc shared libc under /lib which is perfect for when you
deploy your system.

-Erik

--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise