diff options
author | Igor Zlatkovic <igor@src.gnome.org> | 2004-05-24 10:47:38 +0000 |
---|---|---|
committer | Igor Zlatkovic <igor@src.gnome.org> | 2004-05-24 10:47:38 +0000 |
commit | 7d93ac4beea04d4579f9b544cdb34ecb321de6ce (patch) | |
tree | 3d8e82fa6c08d0ea724321b926120d1dcfcc44f5 /win32 | |
parent | 057b4134a72ebafd365c86135fcb0054121b7d27 (diff) | |
download | libxslt-7d93ac4beea04d4579f9b544cdb34ecb321de6ce.tar.gz libxslt-7d93ac4beea04d4579f9b544cdb34ecb321de6ce.tar.bz2 libxslt-7d93ac4beea04d4579f9b544cdb34ecb321de6ce.zip |
added cruntime option, contributed by Oliver Stoeneberg
Diffstat (limited to 'win32')
-rw-r--r-- | win32/Makefile.msvc | 2 | ||||
-rw-r--r-- | win32/configure.js | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/win32/Makefile.msvc b/win32/Makefile.msvc index 4035656c..d6d9bbb7 100644 --- a/win32/Makefile.msvc +++ b/win32/Makefile.msvc @@ -51,7 +51,7 @@ CPPFLAGS = /nologo # The compiler and its options. CC = cl.exe -CFLAGS = /nologo /D "WIN32" /D "_WINDOWS" /D "_MBCS" /W3 /MD /D "_REENTRANT" +CFLAGS = /nologo /D "WIN32" /D "_WINDOWS" /D "_MBCS" /W3 $(CRUNTIME) /D "_REENTRANT" CFLAGS = $(CFLAGS) /I$(BASEDIR) /I$(XSLT_SRCDIR) /I$(INCPREFIX) # The linker and its options. diff --git a/win32/configure.js b/win32/configure.js index 73ac3fbb..b6442b68 100644 --- a/win32/configure.js +++ b/win32/configure.js @@ -48,6 +48,7 @@ var withZlib = false; /* Win32 build options. */ var dirSep = "\\"; var compiler = "msvc"; +var cruntime = "/MD"; var buildDebug = 0; var buildStatic = 0; var buildPrefix = "."; @@ -102,6 +103,7 @@ function usage() txt += " zlib: Use zlib library (" + (withZlib? "yes" : "no") + ")\n"; txt += "\nWin32 build options, default value given in parentheses:\n\n"; txt += " compiler: Compiler to be used [msvc|mingw] (" + compiler + ")\n"; + txt += " cruntime: C-runtime compiler option (only msvc) (" + cruntime + ")\n"; txt += " debug: Build unoptimised debug executables (" + (buildDebug? "yes" : "no") + ")\n"; txt += " static: Link xsltproc statically to libxslt (" + (buildStatic? "yes" : "no") + ")\n"; txt += " prefix: Base directory for the installation (" + buildPrefix + ")\n"; @@ -176,6 +178,7 @@ function discoverVersion() if (compiler == "msvc") { vf.WriteLine("INCLUDE=$(INCLUDE);" + buildInclude); vf.WriteLine("LIB=$(LIB);" + buildLib); + vf.WriteLine("CRUNTIME=" + cruntime); } else if (compiler == "mingw") { vf.WriteLine("INCLUDE+=;" + buildInclude); vf.WriteLine("LIB+=;" + buildLib); @@ -323,6 +326,8 @@ for (i = 0; (i < WScript.Arguments.length) && (error == 0); i++) { withZlib = strToBool(arg.substring(opt.length + 1, arg.length)); else if (opt == "compiler") compiler = arg.substring(opt.length + 1, arg.length); + else if (opt == "cruntime") + cruntime = arg.substring(opt.length + 1, arg.length); else if (opt == "static") buildStatic = strToBool(arg.substring(opt.length + 1, arg.length)); else if (opt == "prefix") @@ -427,6 +432,8 @@ txtOut += "\n"; txtOut += "Win32 build configuration\n"; txtOut += "-------------------------\n"; txtOut += " Compiler: " + compiler + "\n"; +if (compiler == "msvc") + txtOut += " C-Runtime option: " + cruntime + "\n"; txtOut += " Debug symbols: " + boolToStr(buildDebug) + "\n"; txtOut += " Static xsltproc: " + boolToStr(buildStatic) + "\n"; txtOut += " Install prefix: " + buildPrefix + "\n"; |