source: patches/perl-5.8.8-fPIC-1.patch@ d89eade

Last change on this file since d89eade was 67300de, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Create a clfs-1.1 branch in preperation for a RC.

  • Property mode set to 100644
File size: 1.5 KB
RevLine 
[67300de]1Submitted By: Joe Ciccone <jciccone@linuxfromscratch.org>
2Date: 2006-08-20
3Initial Package Version: 5.8.8
4Upstream Status: Unknown
5Origin: http://cvs.fedora.redhat.com/viewcvs/*checkout*/devel/perl/perl-5.8.1-fpic.patch
6Description: Fixes a test that checks to see which paramater needs to be used
7 for -fPIC and forces the objects in DynaLoader to be built
8 with -fPIC.
9
10diff -Naur perl-5.8.8.orig/Configure perl-5.8.8/Configure
11--- perl-5.8.8.orig/Configure 2006-08-20 15:18:40.000000000 -0400
12+++ perl-5.8.8/Configure 2006-08-20 15:21:39.000000000 -0400
13@@ -7586,7 +7586,7 @@
14 ;;
15 *) case "$osname" in
16 darwin) dflt='none' ;;
17- svr4*|esix*|solaris|nonstopux) dflt='-fPIC' ;;
18+ linux*|svr4*|esix*|solaris|nonstopux) dflt='-fPIC' ;;
19 *) dflt='-fpic' ;;
20 esac ;;
21 esac ;;
22diff -Naur perl-5.8.8.orig/ext/DynaLoader/hints/linux.pl perl-5.8.8/ext/DynaLoader/hints/linux.pl
23--- perl-5.8.8.orig/ext/DynaLoader/hints/linux.pl 2006-08-20 15:18:41.000000000 -0400
24+++ perl-5.8.8/ext/DynaLoader/hints/linux.pl 2006-08-20 15:35:29.000000000 -0400
25@@ -2,4 +2,7 @@
26 # Some Linux releases like to hide their <nlist.h>
27 $self->{CCFLAGS} = $Config{ccflags} . ' -I/usr/include/libelf'
28 if -f "/usr/include/libelf/nlist.h";
29+# Some silly modules like mod_perl use DynaLoader.a in a shared
30+# moduke, so add cccdlflags if we're going for a shared libperl
31+$self->{CCFLAGS} = ($self->{CCFLAGS} || $Config{ccflags}) . " $Config{cccdlflags}";
32 1;
Note: See TracBrowser for help on using the repository browser.