[uClibc]about latest cvs linking changes

Giulio Orsero giulioo at pobox.com
Mon Jan 14 10:03:58 UTC 2002


On Mon, 14 Jan 2002 02:16:39 -0700, you wrote:

>On Sun Jan 13, 2002 at 10:36:18PM +0100, Giulio Orsero wrote:
>> RedHat 6.x system
>> 
>> cvs20020103 would link uClibc shared libs ok
>> cvs20020113 links shared libs as static
>
>Ok, I just tried to reproduce this and I'm not seeing it.  Could
>you double check with the latest and greatest and let me know if
>you are still seeing the problem?

Yes

=== latest cvs
[go at myhost libutil]$ make shared
ar r libutil.a login.o login_tty.o logout.o logwtmp.o openpty.o forkpty.o
install -d ../lib
rm -f ../lib/libutil.a
install -m 644 libutil.a ../lib/
ld -s -shared -nostdlib --warn-common --warn-once -z combreloc -o
libutil-0.9.8.so \
    -soname=libutil.so.0 \
    --whole-archive libutil.a -L..//lib -lc;
install -d ../lib
rm -f ../lib/libutil-0.9.8.so ../lib/libutil.so.0
install -m 644 libutil-0.9.8.so ../lib/;
(cd ../lib && ln -sf libutil-0.9.8.so libutil.so);
(cd ../lib && ln -sf libutil-0.9.8.so libutil.so.0);
[go at myhost libutil]$ /usr/i386-linux22-uclibc/bin/ldd libutil-0.9.8.so
        not a dynamic executable
[go at myhost libutil]$ ls -l libutil-0.9.8.so
-rwxrwxr-x   1 go       go         186080 Jan 14 10:44 libutil-0.9.8.so
[go at myhost libutil]$


=== cvs 20020103
[go at myhost libutil]$ make shared
ar r libutil.a login.o login_tty.o logout.o logwtmp.o openpty.o forkpty.o
install -d ../lib
rm -f ../lib/libutil.a
install -m 644 libutil.a ../lib/
../extra/gcc-uClibc/i386-uclibc-gcc --uclibc-use-build-dir -s
-Wl,-warn-common -
nostdlib -shared -o libutil-0.9.8.so \
    -Wl,-soname,libutil.so.0 -Wl,--whole-archive libutil.a -lc
install -d ../lib
rm -f ../lib/libutil-0.9.8.so ../lib/libutil.so.0
install -m 644 libutil-0.9.8.so ../lib/;
(cd ../lib && ln -sf libutil-0.9.8.so libutil.so);
(cd ../lib && ln -sf libutil-0.9.8.so libutil.so.0);
[go at myhost libutil]$ /usr/i386-linux22-uclibc/bin/ldd libutil-0.9.8.so
        libc.so.0 => /usr/i386-linux22-uclibc/lib/libc.so.0
[go at myhost libutil]$ ls -l libutil-0.9.8.so
-rwxrwxr-x   1 go       go           4736 Jan 14 10:53 libutil-0.9.8.so
[go at myhost libutil]$ 

===
>If you do still see it, what version of gcc and binutils?

$ rpm -q egcs
egcs-1.1.2-24
$ rpm -q binutils
binutils-2.9.1.0.23-6
$ gcc --version
egcs-2.91.66
$ ld --version
GNU ld 2.9.1
Copyright 1997 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
  Supported emulations:
   elf_i386
   i386linux


-- 
giulioo at pobox.com



More information about the uClibc mailing list