projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prereq-build: do not replace binaries with symlinks
[openwrt/openwrt.git]
/
include
/
prereq.mk
diff --git
a/include/prereq.mk
b/include/prereq.mk
index c72878ebb0eb0a0f0502393653b02594d4cf5bbb..c888268d852074859bd9844171b7d75adc5d521a 100644
(file)
--- a/
include/prereq.mk
+++ b/
include/prereq.mk
@@
-110,6
+110,10
@@
define SetupHostCommand
*" -> $$$$$$$$bin"*) \
[ -x "$(STAGING_DIR_HOST)/bin/$(strip $(1))" ] && exit 0 \
;; \
*" -> $$$$$$$$bin"*) \
[ -x "$(STAGING_DIR_HOST)/bin/$(strip $(1))" ] && exit 0 \
;; \
+ "-"*) \
+ find "$(STAGING_DIR_HOST)/stamp" | grep $(strip $(1)) && \
+ [ -x "$(STAGING_DIR_HOST)/bin/$(strip $(1))" ] && exit 0 \
+ ;; \
esac; \
ln -sf "$$$$$$$$bin" "$(STAGING_DIR_HOST)/bin/$(strip $(1))"; \
exit 1; \
esac; \
ln -sf "$$$$$$$$bin" "$(STAGING_DIR_HOST)/bin/$(strip $(1))"; \
exit 1; \