[uClibc][PATCH] make clean target fix and MIPS ldso patch...

Steven J. Hill sjhill at realitydiluted.com
Thu Mar 21 21:07:11 UTC 2002


Greetings.

Just a little patch to fix the make clean target that was leaving
symbolic links around for MIPS and others. Also, one simple little
patch for ldso and MIPS. More to follow.

-Steve

diff -urN uclibc/Makefile uclibc-patched/Makefile
--- uclibc/Makefile	Thu Mar 21 11:39:06 2002
+++ uclibc-patched/Makefile	Thu Mar 21 15:02:53 2002
@@ -329,16 +329,17 @@
 
 distclean clean:
 	@rm -rf tmp lib include/bits libc/tmp _install
-	- find include -type l -exec rm -f {} \;
-	- find . \( -name \*.o -o -name \*.a -o -name \*.so -o -name core -o -name .\#\* \) -exec rm -f {} \;
 	$(MAKE) -C test clean
 	$(MAKE) -C ldso clean
 	$(MAKE) -C libc/misc clean
 	$(MAKE) -C libc/unistd clean
 	$(MAKE) -C libc/sysdeps/linux/common clean
-	$(MAKE) -C libc/sysdeps/linux/$(TARGET_ARCH) clean
 	$(MAKE) -C extra/gcc-uClibc clean
-	find . -name mipsel -exec rm -rf {} \;
+	@if [ -d libc/sysdeps/linux/$(TARGET_ARCH) ]; then		\
+	    $(MAKE) -C libc/sysdeps/linux/$(TARGET_ARCH) clean;		\
+	fi;
+	- find . \( -name \*.o -o -name \*.a -o -name \*.so -o -name core -o -name .\#\* \) -exec rm -f {} \;
+	- find -type l -exec rm -f {} \;
 
 dist release: distclean
 	cd ..;					\
diff -urN uclibc/ldso/ldso/ldso.c uclibc-patched/ldso/ldso/ldso.c
--- uclibc/ldso/ldso/ldso.c	Thu Mar 21 11:39:07 2002
+++ uclibc-patched/ldso/ldso/ldso.c	Thu Mar 21 14:46:57 2002
@@ -286,6 +286,8 @@
   __asm__("\tmov %0, r10\n\t":"=r"(got));
 #elif defined(__powerpc__)
   __asm__("\tbl _GLOBAL_OFFSET_TABLE_-4 at local\n\t":"=l"(got));
+#elif defined(__mips__)
+  __asm__("\tmove %0, $28\n\t":"=r"(got));
 #else
 	/* Do things the slow way in C */
 	{



More information about the uClibc mailing list