From: Dmitry Stogov Date: Tue, 14 Nov 2006 14:11:05 +0000 (+0000) Subject: Fixed problem with spaces in libpath X-Git-Tag: RELEASE_1_0_0RC1~1017 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8983879bdd52366ad0f0b8b1107b9c765ee440ed;p=php Fixed problem with spaces in libpath --- diff --git a/win32/build/config.w32 b/win32/build/config.w32 index b6605eff09..12ba1b2e58 100644 --- a/win32/build/config.w32 +++ b/win32/build/config.w32 @@ -226,7 +226,11 @@ function add_extra_dirs() for (i = 0; i < path.length; i++) { f = FSO.GetAbsolutePathName(path[i]); if (FSO.FolderExists(f)) { - ADD_FLAG("LDFLAGS", '/libpath:"' + f + '" '); + if (f.indexOf(" ") >= 0) { + ADD_FLAG("LDFLAGS", '/libpath:"\\"' + f + '\\"" '); + } else { + ADD_FLAG("LDFLAGS", '/libpath:"' + f + '" '); + } } } }