[Mesa-dev] [PATCH] install-gallium-links.mk: handle multiple libraries

Tim Rowley timothy.o.rowley at intel.com
Wed Apr 13 20:06:45 UTC 2016


Need to prevent bash from interpreting whitespace between libraries
as a command line.
---
 install-gallium-links.mk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/install-gallium-links.mk b/install-gallium-links.mk
index 4010cad..ac5a499 100644
--- a/install-gallium-links.mk
+++ b/install-gallium-links.mk
@@ -12,9 +12,9 @@ all-local : .install-gallium-links
 		link_dir=$(top_builddir)/$(LIB_DIR)/egl;	\
 	fi;							\
 	$(MKDIR_P) $$link_dir;					\
-	file_list=$(dri_LTLIBRARIES:%.la=.libs/%.so);		\
-	file_list+=$(egl_LTLIBRARIES:%.la=.libs/%.$(LIB_EXT)*);	\
-	file_list+=$(lib_LTLIBRARIES:%.la=.libs/%.$(LIB_EXT)*);	\
+	file_list="$(dri_LTLIBRARIES:%.la=.libs/%.so)";		\
+	file_list+="$(egl_LTLIBRARIES:%.la=.libs/%.$(LIB_EXT)*)";	\
+	file_list+="$(lib_LTLIBRARIES:%.la=.libs/%.$(LIB_EXT)*)";	\
 	for f in $$file_list; do 				\
 		if test -h .libs/$$f; then			\
 			cp -d $$f $$link_dir;			\
-- 
1.9.1



More information about the mesa-dev mailing list