summaryrefslogtreecommitdiff
path: root/sdlperl/Makefile.patch
blob: ae20c08c775f1ae71c4c6ee2be555ea3f9d25941 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- Makefile.linux.orig	2004-06-25 12:44:53.000000000 +0100
+++ Makefile.linux	2004-06-25 12:45:37.000000000 +0100
@@ -119,12 +119,12 @@
 my %options = (
     'NAME'	=> 'SDL_perl',
     'VERSION_FROM' => 'lib/SDL.pm', 
-    'LIBS'	=> [ join( " ",	"$sdl_libs", 
+    'LIBS'	=> [ join( " ",	$ENV{"LDFLAGS"}, "$sdl_libs", 
 			map { $ext{$_}{exists} ? "-l$_" : '' } (sort keys %ext),
 			)
 		],  
     'DEFINE'	=> join ( " ", @defs, map { $ext{$_}{exists} ? "-D$ext{$_}{inc}" : '' } sort keys %ext),
-    'INC'	=> "$inc_flags $sdl_cflags " . join(" ", map { "-I$_" } @dirs),
+    'INC'	=> $ENV{"CFLAGS"} . " $inc_flags $sdl_cflags " . join(" ", map { "-I$_" } @dirs),
     'OBJECT'	=> (	
 			 ($ext{SDL_image}{exists} ? 'SFont.o ' : "") .
 			 'SDL_perl.o ' .