summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-01-11 13:27:37 +0000
committerEric Andersen <andersen@codepoet.org>2002-01-11 13:27:37 +0000
commit6a461519b91a521a98e0be1bf272bcdac48c6f7e (patch)
treee59f02dba9eaf3bb7bcb86444c2765b10e0a9450 /Makefile
parent072938a98d1f5d454476c218a253daddfa59e2dc (diff)
Scrub the way libraries are linked. Use ld, not gcc, to avoid
chicken-and-egg problems when building gcc toolchains. -Erik
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 38b81a0a1..d9c46baeb 100644
--- a/Makefile
+++ b/Makefile
@@ -180,8 +180,9 @@ install_dev:
install -d $(PREFIX)$(DEVEL_PREFIX)/usr/lib
install -d $(PREFIX)$(DEVEL_PREFIX)/include
tar -chO include | tar -xC $(PREFIX)$(DEVEL_PREFIX);
- chmod 755 `find $(PREFIX)$(DEVEL_PREFIX) -type d`
- chmod 644 `find $(PREFIX)$(DEVEL_PREFIX)/include -name '*.h'`
+ -@for i in `find $(PREFIX)$(DEVEL_PREFIX) -type d` ; do \
+ chmod -f 755 $$i; chmod -f 644 $$i/*.h; \
+ done;
(NAME=`whoami`; chown -R $$NAME.$$NAME $(PREFIX)$(DEVEL_PREFIX))
ifeq ($(strip $(HAVE_SHARED)),true)
find lib/ -type l -name '*.so' -exec cp -a {} $(PREFIX)$(DEVEL_PREFIX)/lib ';'