[vlc-devel] [PATCH] contrib: Simplify HOSTVARS assignment

Marvin Scholz epirat07 at gmail.com
Wed Jun 19 11:44:04 CEST 2019


---
 contrib/src/main.mak | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 2062f5f5c2..c8984433bc 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -318,7 +318,7 @@ HOSTTOOLS := \
 	CC="$(CC)" CXX="$(CXX)" LD="$(LD)" \
 	AR="$(AR)" CCAS="$(CCAS)" RANLIB="$(RANLIB)" STRIP="$(STRIP)" \
 	PATH="$(PREFIX)/bin:$(PATH)"
-HOSTVARS := \
+HOSTVARS := $(HOSTTOOLS) \
 	CPPFLAGS="$(CPPFLAGS)" \
 	CFLAGS="$(CFLAGS)" \
 	CXXFLAGS="$(CXXFLAGS)" \
@@ -334,11 +334,9 @@ HOSTVARS_PIC := $(HOSTTOOLS) \
 ifdef HAVE_CROSS_COMPILE
 HOSTVARS_MESON := PATH="$(PREFIX)/bin:$(PATH)"
 else
-HOSTVARS_MESON := $(HOSTTOOLS) $(HOSTVARS)
+HOSTVARS_MESON := $(HOSTVARS)
 endif
 
-HOSTVARS := $(HOSTTOOLS) $(HOSTVARS)
-
 download_git = \
 	rm -Rf -- "$(@:.tar.xz=)" && \
 	$(GIT) init --bare "$(@:.tar.xz=)" && \
-- 
2.19.1



More information about the vlc-devel mailing list