[uClibc]Makefile errors (patch included)

Matthias Kilian kili at outback.escape.de
Sun Mar 3 14:24:54 UTC 2002


Hi!

I've encountered two small bugs within the uClibc-0.9.9 Makefiles. The
first is a wrong call to tar when installing header files, the second one
is triggered whenever LIBRARY_CACHE is defined. Here's a patch:


diff -rNu ../uClibc-0.9.9/Makefile ./Makefile
--- ../uClibc-0.9.9/Makefile	Mon Feb  4 16:22:26 2002
+++ ./Makefile	Sat Mar  2 13:36:33 2002
@@ -193,7 +193,7 @@
 	install -d $(PREFIX)$(DEVEL_PREFIX)/usr/lib
 	install -d $(PREFIX)$(DEVEL_PREFIX)/include
 	install -m 644 lib/*.[ao] $(PREFIX)$(DEVEL_PREFIX)/lib/
-	tar -chO include | tar -xf - -C $(PREFIX)$(DEVEL_PREFIX);
+	tar -chf - include | tar -xf - -C $(PREFIX)$(DEVEL_PREFIX);
 	- at for i in `find  $(PREFIX)$(DEVEL_PREFIX) -type d` ; do \
 	    chmod -f 755 $$i; chmod -f 644 $$i/*.h; \
 	done;
diff -rNu ../uClibc-0.9.9/ldso/Makefile ./ldso/Makefile
--- ../uClibc-0.9.9/ldso/Makefile	Fri Jan 11 22:09:53 2002
+++ ./ldso/Makefile	Sun Mar  3 12:31:47 2002
@@ -28,20 +28,20 @@

 all:
 ifeq ($(strip $(BUILD_UCLIBC_LDSO)),true)
-	$(MAKE) -C $(LIBRARY_CACHE) ldso;
+	$(MAKE) -C ldso LIBRARY_CACHE=$(LIBRARY_CACHE) ;
 else
 	echo "Not building ld-uClibc"
 endif

 shared:
 ifeq ($(strip $(BUILD_UCLIBC_LDSO)),true)
-	$(MAKE) -C $(LIBRARY_CACHE) libdl;
+	$(MAKE) -C libdl LIBRARY_CACHE=$(LIBRARY_CACHE);
 else
 	echo "Not building libdl"
 endif

 utils:
-	$(MAKE) -C $(LIBRARY_CACHE) util;
+	$(MAKE) -C util LIBRARY_CACHE=$(LIBRARY_CACHE);

 clean:
 	set -e ; for d in $(ALL_SUBDIRS) ; do $(MAKE) -C $$d $@ ; done


Bye,
	Kili




More information about the uClibc mailing list