1 package Wx::build::MakeMaker::Any_wx_config;
4 use base 'Wx::build::MakeMaker::Any_OS';
5 use Wx::build::MakeMaker::Hacks 'hijack';
7 require ExtUtils::Liblist;
8 my $save = hijack( 'MM', 'ext', \&my_ext );
12 my $full; if( $libs =~ m{(?:\s+|^)(/\S+)} )
13 { $full = $1; $libs =~ s{(?:\s+|^)/\S+}{}g }
14 my @libs = &{$save}( $this, $libs, @_ );
16 $libs[0] = "$libs[0] $full $libs[0]" if $libs[0];
17 $libs[2] = "$libs[2] $full $libs[2]" if $libs[2];
25 my %config = $this->SUPER::get_flags;
27 $config{CC} = $ENV{CXX} || Alien::wxWidgets->compiler;
28 $config{LD} = $ENV{CXX} || Alien::wxWidgets->linker;
29 # used to be CCFLAGS, but overrode CCFLAGS from MakeMaker
30 $config{CC} .= ' ' . Alien::wxWidgets->c_flags . ' ';
31 $config{dynamic_lib}{OTHERLDFLAGS} .= Alien::wxWidgets->link_flags . ' ';
32 $config{DEFINE} .= Alien::wxWidgets->defines . ' ';
33 $config{INC} .= Alien::wxWidgets->include_path;
36 $config{OPTIMIZE} = ' ';