]> granicus.if.org Git - php/commitdiff
Propogate LDFLAGS from extensions to PHPDLL when building them statically.
authorWez Furlong <wez@php.net>
Wed, 3 Dec 2003 14:55:03 +0000 (14:55 +0000)
committerWez Furlong <wez@php.net>
Wed, 3 Dec 2003 14:55:03 +0000 (14:55 +0000)
Move ZendEngine2 to Zend while running buildconf

win32/build/Makefile
win32/build/buildconf.js
win32/build/confutils.js

index 666c108d3f67f0c68313708c047a88a80ca7d12e..81b496c480485fc11899792a5a1802e2f8d71307 100644 (file)
@@ -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)
        
index 38b33baaaa1f867056a6eeea4bb4ebcb8590907b..c08ce7a1de06a52f8391b9619c2ed8823e0b06d0 100644 (file)
@@ -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"));
index dbcc5d7402c5374558527ac6fca9b969fd2ee9f5..97b9e9b4962ec865722ed6657d42a2d29d3c355f 100644 (file)
@@ -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,