This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix $Config{ccflags} for Win32 perls built with dmake
authorSteve Hay <SteveHay@planit.com>
Wed, 5 Oct 2005 15:34:18 +0000 (15:34 +0000)
committerSteve Hay <SteveHay@planit.com>
Wed, 5 Oct 2005 15:34:18 +0000 (15:34 +0000)
commitbb275e7208fde6cd3835f1057d07fa69e22b40a4
tree9b44c354b7e71b88fbe16201f231a362564bfbeb
parent44f8325f4c9b3aaf24b47f4da7dce3e8170dcf42
Fix $Config{ccflags} for Win32 perls built with dmake

The nmake makefile (win32/Makefile) currently adds -nologo, $(STRPOOL)
and -W3 to the ccflags in CFG_VARS, but the dmake makefile
(win32/makefile.mk) doesn't.  This means that extensions built with
perls built with VC++ and dmake spit out damn M$ logo messages and use
a lower warning level.

The reason for the difference is probably that the dmake makefile
supports multiple compilers.  Therefore, put the extra ccflags into a
new macro, and set it appropriately for each compiler.  Add the new
macro to the nmake makefile too for orthogonality.

p4raw-id: //depot/perl@25694
win32/Makefile
win32/makefile.mk