Add hack for windows building on mingw
[sdlgit/SDL_perl.git] / make / lib / SDL / Build.pm
index 3cade52..bcc03a5 100644 (file)
@@ -223,6 +223,8 @@ sub write_sdl_config
        print $file $text;
 }
 
+
+
 # Subclass  Darwin to build Objective-C addons
 
 sub filter_support {
@@ -248,6 +250,24 @@ sub process_support_files {
        }
 }
 
+# get link flags with a given a sdl_dir
+sub alt_link_flags
+{
+       my($self) = @_;
+       my $sdl_dir = shift;
+
+       return '-L"'.$sdl_dir.'\lib"';
+}
+
+# get compile flags with a given a sdl_dir
+sub alt_compile_flags
+{
+        my($self) = @_;
+        my $sdl_dir = shift;
+
+        return '-L"'.$sdl_dir.'\include\SDL"'; 
+}
+
 # Override to create a MacOS Bundle
 sub ACTION_bundle
 {