[uClibc] toolchain + static/dynamic linking

Rob Landley rob at landley.net
Fri Jun 4 10:04:14 UTC 2004


On Wednesday 02 June 2004 22:45, Jon Anderson wrote:
> Sorry, this is probably ultra-dumb, but I've got a linking question...
>
> Why does it seem that the toolchain compiler only creates static binaries?

This means that the .a files aren't in your path.  For some reason, binutils 
links stuff statically if it can't find .a versions of the libraries but can 
only find the .so versions.  (I have no idea why this is so; it took me a 
while to figure it out myself though.)

I install with:
make RUNTIME_PREFIX=/tools/ DEVEL_PREFIX=/tools/ install_runtime install_dev

You may want to experiment with those two paths, since I'm building an unusual 
toolset.  Yes, the trailing slash is needed.  (Also, if you're not building a 
cross-compiler, you'll probably want to add the install_utils target as 
well...)

Rob

-- 
www.linucon.org: Linux Expo and Science Fiction Convention
October 8-10, 2004 in Austin Texas.  (I'm the con chair.)




More information about the uClibc mailing list