Martin Raspe <[EMAIL PROTECTED]> writes:

> I put a file "mswin32.pl" in the /hints directory and it got called by
> Makefile.pl via the MakeMaker module. The problem is that this hints
> file is not found by Makefile.pl in the /Handler subdir, so the
> handlers fail to compile. I wonder if this could be due to the fact
> that I had to change the statement

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.

I'll file a bug for this.

> \${MAKE} -C Handler static
>       
> to
> 
> cd Handler && \$(MAKE) static
> 
> (VC's "nmake" doesn't seem to have a -C equivalent)? But I think the
> hints file should be called during the "perl Makefile.pl" procedure.

yeah - we'll have to special-case that one for win32.

I'll file a bug for this, too.

Cheers,
jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to