The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

##TODO: MacOSx Arch Fix. # Move this to appropriate place my $sdl_lib_name = 'libSDL.dylib'; #get the right extentions dynamically my $sdl_lib = Alien::SDL->config('prefix')."/lib/$sdl_lib_name"; #Note 'prefix' is not set when Alien::SDL is built with preinstall SDL

my $lipo_out = 'lipo -info '.$sdl_lib; my $arch = $1 if $lipo_out = m/architecture:\s*(\w+)\b/;

my $lddflags = $build->config( 'lddflags' ); my $ccflags = $build->config( 'cflags' ); my $ldflags = $build->config( 'ldflags' );

## foreach of above strip -arch foo and add -arch $arch