Re: Building XML-Xerces-2.3.0-3 on Windows

Martin Raspe <[email protected]>
Newsgroups gmane.text.xml.xerces-p.devel
Message-ID <[email protected]>
Jason E. Stewart wrote:

> Martin Raspe <[email protected]> writes:

> Ok, it seems that the Handler/Makefile.PL is inhibiting the effects of
> the hints file. Please change this:
> 
>   WriteMakefile(
>       LINKTYPE => 'static',
>       'NAME'	=> 'Handler',
>       'INC'       => $INCLUDES,
>       'OBJECT'    => '$(O_FILES)',
>       'CCFLAGS'   => $CFLAGS,
>       'CC'        => $CXX,
>       'SKIP'      => [qw( dynamic test makeaperl xs_o)],
>     @OPTIMIZE,
>     @LDFLAGS,
>   );
> 
> to:
> 
>   WriteMakefile(
>       LINKTYPE => 'static',
>       'NAME'	=> 'Handler',
>       'INC'       => $INCLUDES,
>       'OBJECT'    => '$(O_FILES)',
>       'CC'        => $CXX,
>       'SKIP'      => [qw( dynamic test makeaperl xs_o)],
>     @OPTIMIZE,
>     @LDFLAGS,
>   );
> 
> Removing the CCFLAGS line, and rerun perl Makefile.PL and see if your
> resulting Handler/Makefile has the correct value for CCFLAGS. Let me
> know if it works, then I'll make the fix for the next release.

No, on the contrary. When I put the following condition into the hints 
file "MsWin32.pl"

if ($^O eq 'MSWin32') {
   $CFLAGS .= " $Config::Config{cppflags} -DHAS_BOOL -TP -GX";
}

but delete it from ./Makefile.pl, the hints file only affects the 
./Makefile, not Handler/Makefile, even if I make the proposed change to 
Handler/Makefile.pl.

On the contrary, if I make the change, but leave the condition in 
./Makefile.pl, the change prevents Handler/Makefile from getting the 
right flags.

The only way to make it work for me is to put the condition into 
./Makefile.pl and leave Handler/Makefile.pl alone.

Martin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.