[uClibc] Re: dlopen()'ing libraries that depend on libraries
David Wuertele
dave-gnus at bfnet.com
Wed Aug 20 17:58:43 UTC 2003
Erik> Those of you that were anxiously waiting for this fix, please
Erik> take a few minutes, grab the latest and greatest and try to
Erik> abuse it with whatever code you have that previously wouldn't
Erik> work,
Since my code won't compile with the latest CVS, I am trying to
backport the dlopen fix to 0.9.20. It turns out that the diff between
Aug 18 and Aug 19 applies fine as a patch to stock 0.9.20. But I do
run into a compile error as a result.
The error is caused by the following snippet, which I've excerpted
from the diff between Aug 18 and Aug 19:
--- uClibc-20030818/Rules.mak 2003-08-13 13:08:21.000000000 -0700
+++ uClibc-20030819/Rules.mak 2003-08-18 14:56:11.000000000 -0700
<snip>
ifeq ($(UCLIBC_HAS_SOFT_FLOAT),y)
- CFLAGS += $(call check_gcc,-msoft-float,)
+ CFLAGS += -msoft-float
+ LDFLAGS+= -Wa,-mno-fpu
The actual compile-time error output was:
/home/dave/C/perforce/source/deschutes/buildroot-M14.0-X225/build_mipsel/staging_dir/bin/mipsel-uclibc-ld -s -shared --warn-common --warn-once -z combreloc -Wa,-mno-fpu -soname=libc.so.0 -o libuClibc-0.9.20.so \
--whole-archive ./tmp/libgcc-need.a libc.a \
..//libc/misc/internals/interp.o --no-whole-archive \
-init __uClibc_init /home/dave/C/perforce/source/deschutes/buildroot-M14.0-X225/build_mipsel/staging_dir/lib/gcc-lib/mipsel-linux/3.3/libgcc.a
/home/dave/C/perforce/source/deschutes/buildroot-M14.0-X225/build_mipsel/staging_dir/bin/mipsel-uclibc-ld: unrecognized option '-Wa,-mno-fpu'
Is there something that happened between uClibc-0.9.20 and Aug 19
which makes mipsel-uclibc-ld support the '-Wa,-mno-fpu' option? I
thought that -Wa (assembler option pass-through) was only understood
by gcc. I didn't think the assembler was even invoked by ld. Is this
a typo? Has it worked for anyone?
Dave
More information about the uClibc
mailing list