Denys Vlasenko wrote:
I noticed that uclibc build system is broken. After I touch a file, running make won't rebuild it.
As far as I can tell, only files that go into libc.so and not into libc.a, such as forward.c from libpthread, are affected. This seems to have been broken by revision 12519, which changed some Makefiles to give rules to build lib/libc.so, but the target we're trying to build is still lib/libc.so.0.
So I decided to replace build system, using my experience in replacing build system for busybox.
We can't rewrite entire subsystems everytime we find a bug. Better to understand what's wrong: in this case the fix is quite simple. Try the patch below.
Bernd -- This footer brought to you by insane German lawmakers. Analog Devices GmbH Wilhelm-Wagenfeld-Str. 6 80807 Muenchen Sitz der Gesellschaft Muenchen, Registergericht Muenchen HRB 40368 Geschaeftsfuehrer Thomas Wessel, William A. Martin, Margaret Seif
Index: libc/Makefile.in =================================================================== --- libc/Makefile.in (revision 22026) +++ libc/Makefile.in (working copy) @@ -51,7 +51,7 @@ endif lib-a-y += $(top_builddir)lib/libc.a lib-gdb-y += $(top_builddir)lib/libc.gdb -lib-so-y += $(libc) +lib-so-y += $(libc:.$(MAJOR_VERSION)=) objclean-y += libc_clean OUTPUT_FORMAT = $(CC) $(CFLAGS) -Wl,--verbose 2>&1 | sed -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/OUTPUT_FORMAT ( \1 )/p'
_______________________________________________ uClibc mailing list uClibc@uclibc.org http://busybox.net/cgi-bin/mailman/listinfo/uclibc