There appears to be one additional problem. Sometimes I get the
following cycle:
[EMAIL PROTECTED] /local/src/uclibc/bernds/uClibc $ make
make[1]: `conf' is up to date.
STRIP -X --strip-debug -R .note -R .comment lib/libpthread.a
AR cr lib/libpthread.a
[EMAIL PROTECTED] /local/src/uclibc/bernds/uClibc $ make
make[1]: `conf' is up to date.
STRIP -X --strip-debug -R .note -R .comment
libpthread/linuxthreads.old/libpthread_so.a
AR cr libpthread/linuxthreads.old/libpthread_so.a
LD libpthread-0.9.29.so
[EMAIL PROTECTED] /local/src/uclibc/bernds/uClibc $ make
make[1]: `conf' is up to date.
STRIP -X --strip-debug -R .note -R .comment lib/libpthread.a
AR cr lib/libpthread.a
The patch below fixes it. Again, it's probably crude, since I'm not
that familiar with all of make's tricks. I noticed you added some rules
for .u which contain a strip step in the toplevel Makerules, but I'm not
sure how to use these.
Comments?
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: Makerules
===================================================================
--- Makerules (revision 22160)
+++ Makerules (working copy)
@@ -68,6 +68,7 @@ pur_disp_compile.m = $(pur_disp_compile.
pur_disp_compile-m = echo " "CC-m $(show_objs)
pur_disp_strip = echo " "STRIP $(STRIP_FLAGS) $@
pur_disp_t_strip = echo " "STRIP $(STRIP_FLAGS) $@
+pur_disp_t_strip_d = echo " "STRIP_DEBUG $(STRIP_FLAGS) $@
pur_disp_ar = echo " "AR $(ARFLAGS) $@
pur_disp_ld = echo " "LD $(1)
@@ -80,6 +81,7 @@ sil_disp_compile.m = true
sil_disp_compile-m = true
sil_disp_strip = true
sil_disp_t_strip = true
+sil_disp_t_strip_d = true
sil_disp_ar = true
sil_disp_ld = true
@@ -92,6 +94,7 @@ ver_disp_compile.m = echo $(cmd_compile.
ver_disp_compile-m = echo $(cmd_compile-m)
ver_disp_strip = echo $(cmd_strip)
ver_disp_t_strip = echo $(cmd_t_strip)
+ver_disp_t_strip_d = echo $(cmd_t_strip_d)
ver_disp_ar = echo $(cmd_ar)
ver_disp_ld =
@@ -104,6 +107,7 @@ disp_compile.m = $($(DISP)_disp_compile.
disp_compile-m = $($(DISP)_disp_compile-m)
disp_strip = $($(DISP)_disp_strip)
disp_t_strip = $($(DISP)_disp_t_strip)
+disp_t_strip_d = $($(DISP)_disp_t_strip_d)
disp_ar = $($(DISP)_disp_ar)
disp_ld = $($(DISP)_disp_ld)
@@ -120,6 +124,8 @@ maybe_exec = $(if $(strip $(compare_flag
@set -e; \
$(disp_$(1)); \
$(cmd_$(1)); \
+ $(if $(strip $(filter $@,$(subst $(top_srcdir),,$(STRIP_FILES)))), $(disp_t_strip); $(cmd_t_strip);) \
+ $(if $(strip $(filter $@,$(subst $(top_srcdir),,$(STRIP_DEBUG_FILES)))), $(disp_t_strip_d) ; $(cmd_t_strip_d);) \
echo 'cmd_$@ := $(cmd_$1)' >> $(dir $@).$(notdir $@).dep)
CFLAGS_gen.dep = -MT $@ -MD -MF $(dir $@).$(notdir $@).dep
@@ -134,17 +140,19 @@ cmd_compile.m = $(cmd_compile.c) -DL_$(p
cmd_compile-m = $(CC) $^ -c -o $@ $(CFLAGS) $(ARCH_CFLAGS) $(CFLAGS-$(suffix $@)) $(CFLAGS-$(notdir $(@D))) $(CFLAGS-$(notdir $@))
cmd_strip = $(STRIPTOOL) $(STRIP_FLAGS) $^
cmd_t_strip = $(STRIPTOOL) $(STRIP_FLAGS) $@
+cmd_t_strip_d = $(STRIPTOOL) $(STRIP_FLAGS:-x=-X --strip-debug) $@
cmd_ar = $(AR) $(ARFLAGS) $@ $^
-compile.c = @$(call maybe_exec,compile.c)
-compile.i = $(call maybe_exec,compile.i)
-compile.s = $(call maybe_exec,compile.s)
-compile.S = @$(call maybe_exec,compile.S)
-compile.m = @$(call maybe_exec,compile.m)
-compile-m = @$(disp_compile-m) ; $(cmd_compile-m)
-do_strip = @$(disp_strip) ; $(cmd_strip)
-do_t_strip= @$(disp_t_strip) ; $(cmd_t_strip)
-do_ar = @$(disp_ar) ; $(cmd_ar)
+compile.c = @$(call maybe_exec,compile.c)
+compile.i = $(call maybe_exec,compile.i)
+compile.s = $(call maybe_exec,compile.s)
+compile.S = @$(call maybe_exec,compile.S)
+compile.m = @$(call maybe_exec,compile.m)
+compile-m = @$(disp_compile-m) ; $(cmd_compile-m)
+do_strip = @$(disp_strip) ; $(cmd_strip)
+do_t_strip = @$(disp_t_strip) ; $(cmd_t_strip)
+do_t_strip_d = @$(disp_t_strip_d) ; $(cmd_t_strip_d)
+do_ar = @$(disp_ar) ; $(cmd_ar)
define compile.u
@$(disp_compile.u) ; $(cmd_compile.u)
Index: libpthread/linuxthreads.old/Makefile.in
===================================================================
--- libpthread/linuxthreads.old/Makefile.in (revision 22161)
+++ libpthread/linuxthreads.old/Makefile.in (working copy)
@@ -83,13 +83,14 @@ $(top_builddir)lib/libpthread.so: $(libp
# $(call linkm.so,$(libpthread_FULL_NAME),$(MAJOR_VERSION))
#endif
-$(libpthread_OUT)/libpthread_so.a: $(libpthread-so-y)
- $(Q)$(RM) $@
ifeq ($(PTHREADS_DEBUG_SUPPORT),y)
- $(do_strip:-x=-X --strip-debug)
+STRIP_DEBUG_FILES+=$(libpthread_so-y) $(libpthread-a-y)
else
- $(do_strip)
+STRIP_FILES+=$(libpthread_so-y) $(libpthread-a-y)
endif
+
+$(libpthread_OUT)/libpthread_so.a: $(libpthread-so-y)
+ $(Q)$(RM) $@
$(do_ar)
$(libpthread_OUT)/libpthread.oS: $(libpthread_SRC) $(libpthread_SPEC_SRC)
@@ -104,11 +105,6 @@ endif
$(top_builddir)lib/libpthread.a: $(libpthread-a-y)
$(Q)$(INSTALL) -d $(dir $@)
$(Q)$(RM) $@
-ifeq ($(PTHREADS_DEBUG_SUPPORT),y)
- $(do_strip:-x=-X --strip-debug)
-else
- $(do_strip)
-endif
$(do_ar)
linuxthreads_headers:
_______________________________________________
uClibc mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/uclibc