[uClibc]Re: build-time link removal in include
Miles Bader
miles at lsi.nec.co.jp
Fri Mar 22 07:43:07 UTC 2002
Hi Erik, do you have any comment on my earlier query? Basically,
blindly removing symlinks from `include' in the top-level Makefile
(target `headers') messes up the way I do building, because I use
symlinked build trees.
I'm currently using this patched Makefile, with no noticable problems:
Index: Makefile
===================================================================
RCS file: /var/cvs/uClibc/Makefile,v
retrieving revision 1.151
diff -u -r1.151 Makefile
--- Makefile 21 Mar 2002 10:07:20 -0000 1.151
+++ Makefile 22 Mar 2002 07:39:00 -0000
@@ -69,8 +69,8 @@
@echo
headers: dummy
- @- find include -type l -exec rm -f {} \;
- @if [ $(TARGET_ARCH) = "powerpc" ];then \
+ @rm -f include/asm; \
+ if [ $(TARGET_ARCH) = "powerpc" ];then \
ln -fs $(KERNEL_SOURCE)/include/asm-ppc include/asm; \
elif [ $(TARGET_ARCH) = "v850" ];then \
ln -fs $(KERNEL_SOURCE)/include/asm-v850 include/asm; \
@@ -107,7 +107,8 @@
echo " "; \
sleep 10; \
fi;
- @ln -fs $(KERNEL_SOURCE)/include/linux include/linux
+ rm -f include/linux
+ ln -fs $(KERNEL_SOURCE)/include/linux include/linux
rm -rf include/bits
mkdir -p include/bits
@cd include/bits; \
Is there a reason why the more aggressive approach with `find' is
needed?
Thanks,
-Miles
--
[|nurgle|] ddt- demonic? so quake will have an evil kinda setting? one that
will make every christian in the world foamm at the mouth?
[iddt] nurg, that's the goal
More information about the uClibc
mailing list