chiark / gitweb /
test-load targets: Use strip to sanitise whitespace in OTHER_DIRS so that the subst...
[chiark-tcl.git] / base / extension.make
index a881a9e..4da0272 100644 (file)
@@ -52,7 +52,7 @@ $(SHLIB).test.tcl:
                echo >$@ "load $(SHLIB).so"
 
 test-load:     $(SHLIB).so $(SHLIB).test.tcl
-               LD_LIBRARY_PATH=$(subst $(space),:,$(OTHER_DIRS))$${LD_LIBRARY_PATH+:}$${LD_LIBRARY_PATH} \
+               LD_LIBRARY_PATH=$(subst $(space),:,$(strip $(OTHER_DIRS)))$${LD_LIBRARY_PATH+:}$${LD_LIBRARY_PATH} \
                tclsh$(TCL_VERSION) $(SHLIB).test.tcl
 
 include                $(BASE_DIR)/final.make