[mapserver-commits] r12112 - in trunk/mapserver: . mapscript/php
svn at osgeo.org
svn at osgeo.org
Thu Aug 25 10:01:48 EDT 2011
Author: tamas
Date: 2011-08-25 07:01:48 -0700 (Thu, 25 Aug 2011)
New Revision: 12112
Modified:
trunk/mapserver/HISTORY.TXT
trunk/mapserver/mapscript/php/Makefile.vc
Log:
Fix mapscript php build issues with MSVC (#4004)
Modified: trunk/mapserver/HISTORY.TXT
===================================================================
--- trunk/mapserver/HISTORY.TXT 2011-08-25 08:55:05 UTC (rev 12111)
+++ trunk/mapserver/HISTORY.TXT 2011-08-25 14:01:48 UTC (rev 12112)
@@ -15,6 +15,8 @@
Current Version (SVN trunk, 6.1-dev, future 6.2):
-------------------------------------------------
+- Fix mapscript php build issues with MSVC (#4004)
+
- PHP MapScript is missing many styleObj properties (#3901)
- PHP/Mapscript: Segmentation fault when getting complex object using PHP 5.2 (#3930)
Modified: trunk/mapserver/mapscript/php/Makefile.vc
===================================================================
--- trunk/mapserver/mapscript/php/Makefile.vc 2011-08-25 08:55:05 UTC (rev 12111)
+++ trunk/mapserver/mapscript/php/Makefile.vc 2011-08-25 14:01:48 UTC (rev 12112)
@@ -30,8 +30,12 @@
# Set flag for Visual Studio > 2003 & PHP < 5.3
# see http://bugs.php.net/bug.php?id=39130
!IF $(MSVC_VER) >= 1400
-VCFLAGS = -D_USE_32BIT_TIME_T
+!IFDEF WIN64
+VCFLAGS = -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE
+!ELSE
+VCFLAGS = -D_USE_32BIT_TIME_T -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE
!ENDIF
+!ENDIF
BASE_CFLAGS = $(OPTFLAGS) -DWIN32 -D_WIN32 $(PHP4_FLAGS) $(VCFLAGS)
OPTFLAGS = /nologo /Zi /MD $(WARNING_LEVEL) $(DEBUG) /EHsc
@@ -78,12 +82,13 @@
$(PHPMS_DLL): $(PHPMS_OBJS)
link $(LDFLAGS) /out:$(PHPMS_DLL) $(PHPMS_OBJS) $(MS_LIBS) \
$(PHP_HOME)\lib\$(PHP_TS_LIB_NAME)
+ if exist $(PHPMS_DLL).manifest mt -manifest $(PHPMS_DLL).manifest -outputresource:$(PHPMS_DLL);2
$(PHPPROJ_DLL): $(PHPPROJ_OBJS)
link $(LDFLAGS) /out:$(PHPPROJ_DLL) $(PHPPROJ_OBJS) $(MS_LIBS) \
$(PHP_HOME)\lib\$(PHP_TS_LIB_NAME)
-$(PHPMS_OBJS): php_mapscript_util.h php_mapscript.h $(MS_LIBS)
+$(PHPMS_OBJS): php_mapscript_util.h php_mapscript.h
.c.obj:
$(CC) $(CFLAGS) /DCOMPILE_DL=1 /c $*.c /Fo$*.obj
@@ -99,4 +104,5 @@
del *.pdb
del *.exp
del *.ilk
+ del *.manifest
More information about the mapserver-commits
mailing list