소스 검색

Makefile.autotools.in: honor CONFIG_SHELL and TAR.
Don't use recursively expanded definition
(Use ':=' instead of '=')

Wade Berrier 17 년 전
부모
커밋
5b0e7a5ddb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      package/Makefile.autotools.in

+ 1 - 1
package/Makefile.autotools.in

@@ -125,7 +125,7 @@ TAR ?= tar
 #	ACLOCAL="$(ACLOCAL)"
 
 # Automatically detect tar --strip-path/components option
-TAR_STRIP_COMPONENTS = $(shell tar --help | grep strip-path > /dev/null ; if test $$? = 0 ; then echo '--strip-path' ; else echo '--strip-components' ; fi)
+TAR_STRIP_COMPONENTS := $(shell $(CONFIG_SHELL) -c '$(TAR) --help | grep strip-path > /dev/null ; if test $$? = 0 ; then echo '--strip-path' ; else echo '--strip-components' ; fi')
 
 ################################################################################
 # Implicit targets -- produce a stamp file for each step of a package build