Hi,

I've been experimenting with monolithic wxWidgets builds to see if it would 
solve some of my problems with PDK.
It does not, but here is patch that allows Alien-wxWidgets to work with 
monolithic wxWidgets.
All tests pass,Wx builds OK and all the XS CPAN modules that I regularly build, 
build ok. Found no problems so far.

Regards

Mark
Index: inc/My/Build/Base.pm
===================================================================
--- inc/My/Build/Base.pm        (revision 2376)
+++ inc/My/Build/Base.pm        (working copy)
@@ -286,7 +331,7 @@
     $config{config}{debug} = $self->awx_is_debug;
     $config{config}{unicode} = $self->awx_is_unicode;
     $config{config}{mslu} = $self->awx_is_mslu;
-    $config{config}{build} = 'multi';
+    $config{config}{build} = $self->awx_is_monolithic ? 'mono' : 'multi';
     $config{link_flags} = '';
     $config{c_flags} = '';
 
Index: inc/My/Build/Win32_MinGW_Bakefile.pm
===================================================================
--- inc/My/Build/Win32_MinGW_Bakefile.pm        (revision 2376)
+++ inc/My/Build/Win32_MinGW_Bakefile.pm        (working copy)
@@ -57,7 +57,7 @@
     chdir $dir;
     die 'Could not find wxWidgets lib directory' unless $libdir;
 
-    $data{dlls} = $self->awx_grep_dlls( $orig_libdir, $digits );
+    $data{dlls} = $self->awx_grep_dlls( $orig_libdir, $digits, 
$self->awx_is_monolithic );
     $data{version} = $digits;
 
     $self->{awx_data} = \%data;
Index: inc/My/Build/Win32_MSVC_Bakefile.pm
===================================================================
--- inc/My/Build/Win32_MSVC_Bakefile.pm (revision 2376)
+++ inc/My/Build/Win32_MSVC_Bakefile.pm (working copy)
@@ -69,7 +69,7 @@
     chdir $dir;
     die 'Could not find wxWidgets lib directory' unless $libdir;
 
-    $data{dlls} = $self->awx_grep_dlls( $orig_libdir, $digits );
+    $data{dlls} = $self->awx_grep_dlls( $orig_libdir, $digits, 
$self->awx_is_monolithic );
     $data{version} = $digits;
 
     $self->{awx_data} = \%data;

Reply via email to