[xmlsec] Windows compilation issue in debug mode

Aleksey Sanin aleksey at aleksey.com
Thu May 10 07:50:01 PDT 2012


Thanks

Aleksey

On 5/10/12 2:19 AM, Frank Gross wrote:
> 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
> 


More information about the xmlsec mailing list