[uClibc] [PATCH] fix libptrhead build for m68k

Bernardo Innocenti bernie at develer.com
Sun Oct 5 23:06:25 UTC 2003


Hello,

this patch is required to build libpthread on uClinux.
I've made the test on ARCH_HAS_NO_MMU, but perhaps
testing for m68k or for the FLAT binary format would
be more appropriate.

The real reason for this exception is that uClinux binaries
are not linked with crtbegin.o/crtend.o.


--- uClibc-0.9.21.orig/libpthread/Makefile	2003-06-30 20:27:34.000000000 +0200
+++ uClibc-0.9.21/libpthread/Makefile	2003-10-05 22:45:08.000000000 +0200
@@ -38,6 +38,7 @@
 endif
 endif
 
+ifneq ($(strip $(ARCH_HAS_NO_MMU)),y)
 ifeq ($(strip $(UCLIBC_CTOR_DTOR)),y)
 ifeq ($(strip $(DOPIC)),y)
     START_FILES  = $(TOPDIR)lib/crti.o    $(LIBGCC_DIR)crtbeginS.o
@@ -47,6 +48,7 @@
     END_FILES    = $(LIBGCC_DIR)crtend.o  $(TOPDIR)lib/crtn.o
 endif
 endif
+endif
 
 ALL_SUBDIRS = linuxthreads linuxthreads_db
 


-- 
  // Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/  http://www.develer.com/

Please don't send Word attachments - http://www.gnu.org/philosophy/no-word-attachments.html






More information about the uClibc mailing list