[uClibc]about latest cvs linking changes

Giulio Orsero giulioo at pobox.com
Sun Jan 13 21:36:18 UTC 2002


RedHat 6.x system

cvs20020103 would link uClibc shared libs ok
cvs20020113 links shared libs as static

example for libutil:

==== from 4k dynamic (uses uClibc stuff)
shared: all
    $(TARGET_CC) $(TARGET_LDFLAGS) -nostdlib -shared -o
$(LIBUTIL_SHARED_FULLNAME) \
        -Wl,-soname,$(LIBUTIL_SHARED).$(MAJOR_VERSION) -Wl,--whole-archive
$(LIBUTIL) -lc

$ ls -l libutil-0.9.8.so
-rwxrwxr-x   1 go       go           4736 Jan 13 20:17 libutil-0.9.8.so
$

==== to 187k static (uses system ld)
shared: all
    $(LD) $(LDFLAGS) -o $(LIBUTIL_SHARED_FULLNAME) \
        -soname=$(LIBUTIL_SHARED).$(MAJOR_VERSION) \
        --whole-archive $(LIBUTIL) -L$(TOPDIR)/lib -lc;

$ ls -l libutil-0.9.8.so
-rwxrwxr-x   1 go       go         187776 Jan 13 20:29 libutil-0.9.8.so
$


-- 
giulioo at pobox.com



More information about the uClibc mailing list