File: fix-inline-ccflags

package info (click to toggle)
libsdl-perl 2.548-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 5,904 kB
  • sloc: perl: 13,985; ansic: 582; makefile: 35
file content (24 lines) | stat: -rw-r--r-- 825 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description:Fix inline ccflags
 When Inline::C,  CFLAGS is overridden with the flags provided by
 'sdl-config --cflags'. This command does not provide the flags used
 to compile Perl. In Debian case, omitting the flags used to compile
 Perl will lead to exceution failure when using Inline::C on i386.
 .
 This patch uses Inline::C CFLAGSEX to extend the original Perl compilation
 flags with sdl flags. 
 .
 Thamks to Niko Tyni for the analysis and fix.
Bug:https://github.com/PerlGameDev/SDL_Manual/issues/15
Bug-Debian:https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=730549
Author:dod
--- a/lib/SDL.pm
+++ b/lib/SDL.pm
@@ -111,7 +111,7 @@
 			$path = $find if -e $find } @INC;
     return {
 	LIBS => $libs,
-	CCFLAGS => $cflags,
+	CCFLAGSEX => $cflags,
 	TYPEMAPS => $path,
 	AUTO_INCLUDE => '#include <SDL.h>'
     };