[xmlsec] Windows compilation issue in debug mode

Frank Gross fg at 4js.com
Thu May 10 02:19:29 PDT 2012


Hi,

   I found a minor issue on windows and in debug mode. The library must 
be linked with /MDd and not /MD otherwise the errno variable is not 
returned properly from one dll to another. See following patch :

Modified: gws/branches/gws-ext-libs-2.50/lib-aleksey-xmlsec1/src/win32/Makefile.msvc
===================================================================
--- gws/branches/gws-ext-libs-2.50/lib-aleksey-xmlsec1/src/win32/Makefile.msvc	2012-05-09 15:30:49 UTC (rev 114399)
+++ gws/branches/gws-ext-libs-2.50/lib-aleksey-xmlsec1/src/win32/Makefile.msvc	2012-05-09 15:59:48 UTC (rev 114400)
@@ -304,7 +304,7 @@
  #
  CC 			= cl.exe
  CFLAGS 			= /nologo /D "WIN32" /D "_WINDOWS"
-CFLAGS 			= $(CFLAGS) /D "_MBCS" /D "_REENTRANT"  /W1 /MD
+CFLAGS 			= $(CFLAGS) /D "_MBCS" /D "_REENTRANT"  /W1
  CFLAGS 			= $(CFLAGS) /I$(BASEDIR) /I$(BASEDIR)\include
  CFLAGS 			= $(CFLAGS) /I$(INCPREFIX)
  CFLAGS 			= $(CFLAGS) /D PACKAGE=\"$(XMLSEC_NAME)\"
@@ -318,9 +318,9 @@

  # Optimisation and debug symbols.
  !if "$(DEBUG)" == "1"
-CFLAGS 			= $(CFLAGS) /D "_DEBUG" /Od /Z7
+CFLAGS 			= $(CFLAGS) /D "_DEBUG" /Od /Z7 /MDd
  !else
-CFLAGS 			= $(CFLAGS) /D "NDEBUG" /O2
+CFLAGS 			= $(CFLAGS) /D "NDEBUG" /O2 /MD
  !endif
  


Frank

-- 
Frank GROSS
Software Engineer - Web Services
Four J's Development Tools - http://www.4js.com



More information about the xmlsec mailing list