[uClibc] make install patch
Denis Dowling
dpd at alphalink.com.au
Thu Oct 30 00:46:45 UTC 2003
The install target in the uclibc makefile is running a couple of finds from
the wrong directory resulting in it modifying more files than it should. I
was scratching my head trying to work out where all my CVS directories went
and then I found this :-)
Regards,
Denis.
--- uClibc.orig/Makefile 2003-10-21 06:13:18.000000000 +1000
+++ uClibc/Makefile 2003-10-28 21:54:35.000000000 +1100
@@ -243,11 +243,11 @@
# Remove getopt header since gnu getopt support is disabled.
$(RM) $(PREFIX)$(DEVEL_PREFIX)/include/getopt.h
endif
- - at for i in `find $(PREFIX)$(DEVEL_PREFIX) -type d` ; do \
+ - at for i in `find $(PREFIX)$(DEVEL_PREFIX)/include -type d` ; do \
chmod 755 $$i; chmod 644 $$i/*.h; \
done;
- -find $(PREFIX)$(DEVEL_PREFIX) -name CVS | xargs $(RM) -r;
- -chown -R `id | sed 's/^uid=\([0-9]*\).*gid=\([0-9]*\).*$$/\1.\2/'`
$(PR
EFIX)$(DEVEL_PREFIX)
+ -find $(PREFIX)$(DEVEL_PREFIX)/include -name CVS | xargs $(RM) -r;
+ -chown -R `id | sed 's/^uid=\([0-9]*\).*gid=\([0-9]*\).*$$/\1.\2/'`
$(PR
EFIX)$(DEVEL_PREFIX)/include
ifeq ($(strip $(HAVE_SHARED)),y)
-$(INSTALL) -m 644 lib/*.so $(PREFIX)$(DEVEL_PREFIX)/lib/
-find lib/ -type l -name '*.so' -exec cp -fa {}
$(PREFIX)$(DEVEL_PREFIX)
/lib ';'
More information about the uClibc
mailing list