From: blogic Date: Mon, 2 Jun 2014 12:44:13 +0000 (+0000) Subject: package/Makefile: Substituted deprecated -perm +mode with -perm /mode X-Git-Url: https://git.archive.openwrt.org/?a=commitdiff_plain;h=d6a8d625d4f343c2d8a4d61e54e12210505aa3c3;p=openwrt.git package/Makefile: Substituted deprecated -perm +mode with -perm /mode The find(1) -perm +mode is no longer supported and has been deprecated since 2005. This could resolve #13855 ticket. Signed-off-by: Rocco Folino git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40927 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/Makefile b/package/Makefile index e189e37043..1930d27cf8 100644 --- a/package/Makefile +++ b/package/Makefile @@ -26,7 +26,7 @@ ifdef CONFIG_USE_MKLIBS define mklibs rm -rf $(TMP_DIR)/mklibs-progs $(TMP_DIR)/mklibs-out # first find all programs and add them to the mklibs list - find $(STAGING_DIR_ROOT) -type f -perm +100 -exec \ + find $(STAGING_DIR_ROOT) -type f -perm /100 -exec \ file -r -N -F '' {} + | \ awk ' /executable.*dynamically/ { print $$1 }' > $(TMP_DIR)/mklibs-progs # find all loadable objects that are not regular libraries and add them to the list as well