Permalink
Browse files

Don't rely on CFLAGS pulled in from Perl.

Added --with-debug-crt, for linking to the Debug CRT.


git-svn-id: https://svn.parrot.org/parrot/branches/vc9@34155 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information...
rblasch
rblasch committed Dec 20, 2008
1 parent 0a4be0d commit 674e33296de41697e039b144aaa3526b60602cd8
@@ -38,6 +38,18 @@ sub runstep {
}
if ($is_msvc) {
+ my ($md, $msvcrt);
+ if ($conf->options->get('with-debug-crt')) {
+ $md = '-MDd';
+ $msvcrt = 'msvcrtd.lib';
+ }
+ else {
+ $md = '-MD';
+ $msvcrt = 'msvcrt.lib';
+ }
+
+ $ccflags = "-nologo $md -GF -Zi -GS -RTCcsu -DWIN32";
+ $libs = "$msvcrt kernel32.lib ws2_32.lib";
# Check the output of cl.exe to see if it contains the
# string 'Standard' and remove the -O1 option if it does.
@@ -81,8 +93,9 @@ sub runstep {
ld_share_flags => '-dll',
ld_load_flags => '-dll',
ld_out => '-out:',
+ linkflags => '-nologo -nodefaultlib',
ldflags => '-nologo -nodefaultlib',
- libs => 'kernel32.lib ws2_32.lib msvcrt.lib oldnames.lib ',
+ libs => $libs,
libparrot_static => 'libparrot' . $conf->data->get('a'),
libparrot_shared => 'libparrot$(SHARE_EXT)',
ar_flags => '',
@@ -102,6 +102,7 @@ External Library Options:
--without-gmp Build parrot without GMP support
--without-opengl Build parrot without OpenGL support (GL/GLU/GLUT)
--without-pcre Build parrot without pcre support
+ --with-debug-crt Build parrot with the Debug CRT (Visual C++)
ICU Options:
@@ -74,6 +74,7 @@ our @shared_valid_options = qw{
without-opengl
without-pcre
without-icu
+ with-debug-crt
yacc
};

0 comments on commit 674e332

Please sign in to comment.