diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-08-12 11:00:21 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-08-12 11:00:21 +0000 |
commit | d20b48de93d4cbcc0074b6c57c96bde1c8169fb1 (patch) | |
tree | 120f317900751501f1125fd2e87efaa25f17b4df /extra | |
parent | 4f352d527128fc9515be0384e1e0d0b54629d02e (diff) |
Only try to install existing binaries
-Erik
Diffstat (limited to 'extra')
-rw-r--r-- | extra/gcc-uClibc/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/extra/gcc-uClibc/Makefile b/extra/gcc-uClibc/Makefile index ba6139a43..19d9a4dbd 100644 --- a/extra/gcc-uClibc/Makefile +++ b/extra/gcc-uClibc/Makefile @@ -63,8 +63,11 @@ install: all ln -fs $(SYSTEM_DEVEL_PREFIX)/bin/$(TARGET_ARCH)-uclibc-ld $(PREFIX)$(DEVEL_TOOL_PREFIX)/bin/ld for app in addr2line ar as cpp gasp nm objcopy \ objdump ranlib size strings strip; do \ - ln -fs `which $(CROSS)$${app}` $(PREFIX)$(DEVEL_TOOL_PREFIX)/bin/$${app}; \ - ln -fs `which $(CROSS)$${app}` $(PREFIX)$(SYSTEM_DEVEL_PREFIX)/bin/$(TARGET_ARCH)-uclibc-$${app}; \ + APPNAME=`which $(CROSS)$${app}`; \ + if [ -x "$$APPNAME" ] ; then \ + ln -fs "$$APPNAME" $(PREFIX)$(DEVEL_TOOL_PREFIX)/bin/$${app}; \ + ln -fs "$$APPNAME" $(PREFIX)$(SYSTEM_DEVEL_PREFIX)/bin/$(TARGET_ARCH)-uclibc-$${app}; \ + fi; \ done clean: |