summaryrefslogtreecommitdiff
path: root/win32/build/confutils.js
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-12-23 17:20:50 +0000
committerWez Furlong <wez@php.net>2003-12-23 17:20:50 +0000
commit9720a31bd642b624d3f751e81a14464eeb6c92a9 (patch)
tree3989fc07407476596721d3239dac829ecfc9cd63 /win32/build/confutils.js
parent3b7dcf5e653e6ba5a54c46846ab20851fedb40ea (diff)
downloadphp-git-9720a31bd642b624d3f751e81a14464eeb6c92a9.tar.gz
A more general check for dirs under Release or Debug.
Diffstat (limited to 'win32/build/confutils.js')
-rw-r--r--win32/build/confutils.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/win32/build/confutils.js b/win32/build/confutils.js
index 3d3fdb7299..fcab584e40 100644
--- a/win32/build/confutils.js
+++ b/win32/build/confutils.js
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-// $Id: confutils.js,v 1.29 2003-12-23 13:10:54 wez Exp $
+// $Id: confutils.js,v 1.30 2003-12-23 17:20:50 wez Exp $
var STDOUT = WScript.StdOut;
var STDERR = WScript.StdErr;
@@ -463,7 +463,6 @@ function CHECK_LIB(libnames, target, path_to_check)
} else {
target = "_" + target.toUpperCase();
}
-
if (path_to_check == null) {
path_to_check = php_usual_lib_suspects;
@@ -475,11 +474,20 @@ function CHECK_LIB(libnames, target, path_to_check)
var i;
var libname;
+ var subdir = PHP_DEBUG == "yes" ? "Debug" : "Release";
+
libnames = libnames.split(';');
for (i = 0; i < libnames.length; i++) {
libname = libnames[i];
p = search_paths(libname, path_to_check, "LIB");
+ if (!p) {
+ p = search_paths(subdir + "\\" + libname, path_to_check, "LIB");
+ if (p) {
+ p += "\\" + subdir;
+ }
+ }
+
if (typeof(p) == "string") {
ADD_FLAG("LDFLAGS" + target, '/libpath:"' + p + '" ');
ADD_FLAG("LIBS" + target, libname);