[uClibc]can't compile ld.so
Erik Andersen
andersen at lineo.com
Tue Apr 24 14:27:50 UTC 2001
On Tue Apr 24, 2001 at 11:02:56AM +0200, Oliver Dawid wrote:
>
> hi,
>
> does it work yet? erik, you wrote that you added a :install in the
> Makefile that works. but the only thing that happens is that the linker
> fails to build the lib because of
>
> ../../../extra/gcc-uClibc/i386-uclibc-gcc --shared -nostartfiles \
> -nostdlib -o libdl.so.1 -Wl,-soname -Wl,libdl.so.1 *.o -lc
> gcc: /usr/i386-linux-uclibc/lib/ld-linux-uclibc.so.1
> file or directory not found
>
> did i miss something essential? do i need an initial ld-linux-uclibc.so.1?
Looks like a created a chicken-and-the-egg problem. You need
the chicken to get the egg. But then where does the chicken
come from? :-)
I just whipped up a fix to use 'ld' directly for that step,
bypassing the problem. Change ld.so-1/d-link/libdl/Makefile
so it does
$(LD) $(ELF_LDFLAGS) -o $(LIBDL).$(LDSO_VMAJOR) \
-soname $(LIBDL).$(LDSO_VMAJOR) *.o -lc
Also it looks like ld.so-1/Makefile needs to have the 'make install'
target do
mkdir -p $(TARGETDIR)/lib
so it will work properly.
-Erik
--
Erik B. Andersen email: andersen at lineo.com
--This message was written using 73% post-consumer electrons--
More information about the uClibc
mailing list