Navigation Menu

Skip to content

Commit

Permalink
fix -fPIC for freebsd and dev release 1.433_1
Browse files Browse the repository at this point in the history
  • Loading branch information
FROGGS committed Apr 23, 2014
1 parent e817521 commit f033aee
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Changes
Expand Up @@ -5,6 +5,10 @@ Versioning rule: public releases are even numbers, dev releases are odd. (same l
TODO
- check for available libs when using --with-sdl-config option

1.443_1 Wed Apr 23 2014
- add PIC flags to CFLAGS when the compiler can handle it, this is meant to fix
an issue on freebsd [FROGGS]

1.442 Tue Apr 22 2014
- bump SDL_gfx to 2.0.25 [FROGGS]
- fix for building on >=libX11-1.5.99.901 [FROGGS]
Expand Down
1 change: 1 addition & 0 deletions MANIFEST
Expand Up @@ -25,6 +25,7 @@ patches/SDL-1.2.14-SDL_platform_h.patch
patches/SDL-1.2.14-SDL_x11gl_c.patch
patches/SDL-1.2.14-video_mmx.patch
patches/SDL-1.2.15-openbsd-rldflags.patch
patches/SDL-1.2.15-PIC-in-CFLAGS.patch
patches/SDL_config_win32.h
patches/SDL_gfx-2.0.20-configure.patch
patches/SDL_image-1.2.10-libpng-flags.patch
Expand Down
2 changes: 1 addition & 1 deletion README
Expand Up @@ -2,7 +2,7 @@ NAME
Alien::SDL - building, finding and using SDL binaries

VERSION
Version 1.442
Version 1.443_1

SYNOPSIS
Alien::SDL tries (in given order) during its installation:
Expand Down
1 change: 1 addition & 0 deletions inc/My/Utility.pm
Expand Up @@ -192,6 +192,7 @@ our $source_packs = [
'libsdl-1.2.15-const-xdata32.2.patch',
'libsdl-1.2.15-const-xdata32.3.patch',
'libsdl-1.2.15-const-xdata32.4.patch',
'SDL-1.2.15-PIC-in-CFLAGS.patch',
],
prereqs => {
libs => [
Expand Down
4 changes: 2 additions & 2 deletions lib/Alien/SDL.pm
Expand Up @@ -16,11 +16,11 @@ Alien::SDL - building, finding and using SDL binaries
=head1 VERSION
Version 1.442
Version 1.443_1
=cut

our $VERSION = '1.442';
our $VERSION = '1.443_1';
$VERSION = eval $VERSION;

=head1 SYNOPSIS
Expand Down
13 changes: 13 additions & 0 deletions patches/SDL-1.2.15-PIC-in-CFLAGS.patch
@@ -0,0 +1,13 @@
--- SDL-1.2/configure 2014-04-23 12:59:05.000000000 +0200
+++ SDL-1.2/configure 2014-04-23 12:59:14.000000000 +0200
@@ -7538,7 +7538,9 @@
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
case $lt_prog_compiler_pic in
"" | " "*) ;;
- *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
+ *) lt_prog_compiler_pic=" $lt_prog_compiler_pic"
+ CFLAGS="$CFLAGS$lt_prog_compiler_pic"
+ ;;
esac
else
lt_prog_compiler_pic=

0 comments on commit f033aee

Please sign in to comment.