summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-12-03 14:55:03 +0000
committerWez Furlong <wez@php.net>2003-12-03 14:55:03 +0000
commit93bce454857f81f082dc6c3f7a5f6dc3ec7072df (patch)
tree79ddf23bb5df1b5d289e9e59fff45ab4b9ac8420
parentad84dfa9375a64d8521484600ffe7df15e58a083 (diff)
downloadphp-git-93bce454857f81f082dc6c3f7a5f6dc3ec7072df.tar.gz
Propogate LDFLAGS from extensions to PHPDLL when building them statically.
Move ZendEngine2 to Zend while running buildconf
-rw-r--r--win32/build/Makefile2
-rw-r--r--win32/build/buildconf.js11
-rw-r--r--win32/build/confutils.js5
3 files changed, 13 insertions, 5 deletions
diff --git a/win32/build/Makefile b/win32/build/Makefile
index 666c108d3f..81b496c480 100644
--- a/win32/build/Makefile
+++ b/win32/build/Makefile
@@ -43,7 +43,7 @@ Zend\zend_language_scanner.c: Zend\flex.skl Zend\zend_language_scanner.l
flex -i -SZend/flex.skl -Pzend -oZend/zend_language_scanner.c Zend/zend_language_scanner.l
$(BUILD_DIR)\$(PHPDLL): $(PHPDEF) $(PHP_GLOBAL_OBJS) $(STATIC_EXT_OBJS)
- $(LD) /out:$(BUILD_DIR)\$(PHPDLL) $(PHP_LDFLAGS) $(LDFLAGS) $(PHP_GLOBAL_OBJS) $(STATIC_EXT_OBJS) $(STATIC_EXT_LIBS) $(LIBS)
+ $(LD) /out:$(BUILD_DIR)\$(PHPDLL) $(PHP_LDFLAGS) $(LDFLAGS) $(STATIC_EXT_LDFLAGS) $(PHP_GLOBAL_OBJS) $(STATIC_EXT_OBJS) $(STATIC_EXT_LIBS) $(LIBS)
$(BUILD_DIR)\$(PHPLIB): $(BUILD_DIR)\$(PHPDLL)
diff --git a/win32/build/buildconf.js b/win32/build/buildconf.js
index 38b33baaaa..c08ce7a1de 100644
--- a/win32/build/buildconf.js
+++ b/win32/build/buildconf.js
@@ -1,4 +1,4 @@
-// $Id: buildconf.js,v 1.1 2003-12-02 23:17:04 wez Exp $
+// $Id: buildconf.js,v 1.2 2003-12-03 14:55:03 wez Exp $
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: buildconf.js,v 1.1 2003-12-02 23:17:04 wez Exp $ */
+/* $Id: buildconf.js,v 1.2 2003-12-03 14:55:03 wez Exp $ */
// This generates a configure script for win32 build
WScript.StdOut.WriteLine("Rebuilding configure.js");
@@ -49,6 +49,13 @@ function find_config_w32(dirname)
}
}
+if (FSO.FileExists("ZendEngine2\\OBJECTS2_HOWTO")) {
+ if (FSO.FolderExists("Zend")) {
+ FSO.MoveFolder("Zend", "ZendEngine1");
+ }
+ FSO.MoveFolder("ZendEngine2", "Zend");
+}
+
// Write the head of the configure script
C.WriteLine("/* This file automatically generated from win32/build/confutils.js */");
C.Write(file_get_contents("win32/build/confutils.js"));
diff --git a/win32/build/confutils.js b/win32/build/confutils.js
index dbcc5d7402..97b9e9b496 100644
--- a/win32/build/confutils.js
+++ b/win32/build/confutils.js
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-// $Id: confutils.js,v 1.5 2003-12-03 14:29:45 wez Exp $
+// $Id: confutils.js,v 1.6 2003-12-03 14:55:03 wez Exp $
var STDOUT = WScript.StdOut;
var STDERR = WScript.StdErr;
@@ -473,7 +473,7 @@ function EXTENSION(extname, file_list, shared, cflags)
if (shared) {
dllname = "php_" + extname + ".dll";
MFO.WriteLine("$(BUILD_DIR)\\" + dllname + ": $(" + EXT + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB)");
- MFO.WriteLine("\t$(LD) /out:$(BUILD_DIR)\\" + dllname + " $(DLL_LDFLAGS) $(LDFLAGS) $(" + EXT + "_LDFLAGS) $(" + EXT + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(LIBS_" + EXT + ") $(LIBS)");
+ MFO.WriteLine("\t$(LD) /out:$(BUILD_DIR)\\" + dllname + " $(DLL_LDFLAGS) $(LDFLAGS) $(LDFLAGS_" + EXT + ") $(" + EXT + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(LIBS_" + EXT + ") $(LIBS)");
MFO.WriteBlankLines(1);
ADD_FLAG("EXT_TARGETS", dllname);
@@ -483,6 +483,7 @@ function EXTENSION(extname, file_list, shared, cflags)
} else {
ADD_FLAG("STATIC_EXT_OBJS", "$(" + EXT + "_GLOBAL_OBJS)");
ADD_FLAG("STATIC_EXT_LIBS", "$(LIBS_" + EXT + ")");
+ ADD_FLAG("STATIC_EXT_LDFLAGS", "$(LDFLAGS_" + EXT + ")");
ADD_FLAG("CFLAGS_" + EXT, "$(CFLAGS_PHP)");
/* find the header that declars the module pointer,