From c53e7a603c3d00cf33232ed8671093e813658344 Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Wed, 4 Oct 2006 16:45:46 +0000 Subject: [PATCH] Scons: libintl also needs /MD option git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15240 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/scons/SConstruct | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/development/scons/SConstruct b/development/scons/SConstruct index 84dae97231..298d0ce7f8 100644 --- a/development/scons/SConstruct +++ b/development/scons/SConstruct @@ -468,7 +468,13 @@ if use_vc: # in the current code page (number) # C4996: foo was decleared deprecated CCFLAGS_required.extend(['/TP', '/EHsc']) - CCFLAGS_default.extend(['/wd4819', '/wd4996', '/nologo', '/MD']) + if mode == 'debug': + CCFLAGS_default.extend(['/wd4819', '/wd4996', '/nologo', '/MDd']) + # the flags are also needed in C mode (for intl lib) + C_CCFLAGS.extend(['/wd4819', '/wd4996', '/nologo', '/MDd']) + else: + CCFLAGS_default.extend(['/wd4819', '/wd4996', '/nologo', '/MD']) + C_CCFLAGS.extend(['/wd4819', '/wd4996', '/nologo', '/MD']) else: if env.has_key('CXX') and env['CXX']: env['CC'] = env.subst('$CXX') -- 2.39.2