|
|
734417 |
diff -up perl-5.14.0/cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist.pm.usem perl-5.14.0/cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist.pm
|
|
|
734417 |
--- perl-5.14.0/cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist.pm.usem 2011-05-08 05:10:08.000000000 +0200
|
|
|
734417 |
+++ perl-5.14.0/cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist.pm 2011-05-17 11:14:22.169115984 +0200
|
|
|
734417 |
@@ -88,6 +88,11 @@ libraries. LD_RUN_PATH is a colon separ
|
|
|
734417 |
in LDLOADLIBS. It is passed as an environment variable to the process
|
|
|
734417 |
that links the shared library.
|
|
|
734417 |
|
|
|
734417 |
+Fedora extension: This generation of LD_RUN_PATH is disabled by default.
|
|
|
734417 |
+To use the generated LD_RUN_PATH for all links, set the USE_MM_LD_RUN_PATH
|
|
|
734417 |
+MakeMaker object attribute / argument, (or set the $USE_MM_LD_RUN_PATH
|
|
|
734417 |
+environment variable).
|
|
|
734417 |
+
|
|
|
734417 |
=head2 BSLOADLIBS
|
|
|
734417 |
|
|
|
734417 |
List of those libraries that are needed but can be linked in
|
|
|
734417 |
diff -up perl-5.14.0/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm.usem perl-5.14.0/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm
|
|
|
734417 |
--- perl-5.14.0/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm.usem 2011-05-08 05:10:08.000000000 +0200
|
|
|
734417 |
+++ perl-5.14.0/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm 2011-05-17 13:39:26.912586030 +0200
|
|
|
734417 |
@@ -278,7 +278,7 @@ sub full_setup {
|
|
|
734417 |
PERL_SRC PERM_DIR PERM_RW PERM_RWX
|
|
|
734417 |
PL_FILES PM PM_FILTER PMLIBDIRS PMLIBPARENTDIRS POLLUTE PPM_INSTALL_EXEC
|
|
|
734417 |
PPM_INSTALL_SCRIPT PREREQ_FATAL PREREQ_PM PREREQ_PRINT PRINT_PREREQ
|
|
|
734417 |
- SIGN SKIP TYPEMAPS VERSION VERSION_FROM XS XSOPT XSPROTOARG
|
|
|
734417 |
+ SIGN SKIP TYPEMAPS USE_MM_LD_RUN_PATH VERSION VERSION_FROM XS XSOPT XSPROTOARG
|
|
|
734417 |
XS_VERSION clean depend dist dynamic_lib linkext macro realclean
|
|
|
734417 |
tool_autosplit
|
|
|
734417 |
|
|
|
734417 |
@@ -422,7 +422,27 @@ sub new {
|
|
|
734417 |
# PRINT_PREREQ is RedHatism.
|
|
|
734417 |
if ("@ARGV" =~ /\bPRINT_PREREQ\b/) {
|
|
|
734417 |
$self->_PRINT_PREREQ;
|
|
|
734417 |
- }
|
|
|
734417 |
+ }
|
|
|
734417 |
+
|
|
|
734417 |
+ # USE_MM_LD_RUN_PATH - another RedHatism to disable automatic RPATH generation
|
|
|
734417 |
+ if ( ( ! $self->{USE_MM_LD_RUN_PATH} )
|
|
|
734417 |
+ &&( ("@ARGV" =~ /\bUSE_MM_LD_RUN_PATH(=([01]))?\b/)
|
|
|
734417 |
+ ||( exists( $ENV{USE_MM_LD_RUN_PATH} )
|
|
|
734417 |
+ &&( $ENV{USE_MM_LD_RUN_PATH} =~ /([01])?$/ )
|
|
|
734417 |
+ )
|
|
|
734417 |
+ )
|
|
|
734417 |
+ )
|
|
|
734417 |
+ {
|
|
|
734417 |
+ my $v = $1;
|
|
|
734417 |
+ if( $v )
|
|
|
734417 |
+ {
|
|
|
734417 |
+ $v = ($v=~/=([01])$/)[0];
|
|
|
734417 |
+ }else
|
|
|
734417 |
+ {
|
|
|
734417 |
+ $v = 1;
|
|
|
734417 |
+ };
|
|
|
734417 |
+ $self->{USE_MM_LD_RUN_PATH}=$v;
|
|
|
734417 |
+ };
|
|
|
734417 |
|
|
|
734417 |
print STDOUT "MakeMaker (v$VERSION)\n" if $Verbose;
|
|
|
734417 |
if (-f "MANIFEST" && ! -f "Makefile" && ! $ENV{PERL_CORE}){
|
|
|
734417 |
@@ -2352,6 +2372,40 @@ precedence. A typemap in the current di
|
|
|
734417 |
precedence, even if it isn't listed in TYPEMAPS. The default system
|
|
|
734417 |
typemap has lowest precedence.
|
|
|
734417 |
|
|
|
734417 |
+=item USE_MM_LD_RUN_PATH
|
|
|
734417 |
+
|
|
|
734417 |
+boolean
|
|
|
734417 |
+The Fedora perl MakeMaker distribution differs from the standard
|
|
|
734417 |
+upstream release in that it disables use of the MakeMaker generated
|
|
|
734417 |
+LD_RUN_PATH by default, UNLESS this attribute is specified , or the
|
|
|
734417 |
+USE_MM_LD_RUN_PATH environment variable is set during the MakeMaker run.
|
|
|
734417 |
+
|
|
|
734417 |
+The upstream MakeMaker will set the ld(1) environment variable LD_RUN_PATH
|
|
|
734417 |
+to the concatenation of every -L ld(1) option directory in which a -l ld(1)
|
|
|
734417 |
+option library is found, which is used as the ld(1) -rpath option if none
|
|
|
734417 |
+is specified. This means that, if your application builds shared libraries
|
|
|
734417 |
+and your MakeMaker application links to them, that the absolute paths of the
|
|
|
734417 |
+libraries in the build tree will be inserted into the RPATH header of all
|
|
|
734417 |
+MakeMaker generated binaries, and that such binaries will be unable to link
|
|
|
734417 |
+to these libraries if they do not still reside in the build tree directories
|
|
|
734417 |
+(unlikely) or in the system library directories (/lib or /usr/lib), regardless
|
|
|
734417 |
+of any LD_LIBRARY_PATH setting. So if you specified -L../mylib -lmylib , and
|
|
|
734417 |
+ your 'libmylib.so' gets installed into /some_directory_other_than_usr_lib,
|
|
|
734417 |
+ your MakeMaker application will be unable to link to it, even if LD_LIBRARY_PATH
|
|
|
734417 |
+is set to include /some_directory_other_than_usr_lib, because RPATH overrides
|
|
|
734417 |
+LD_LIBRARY_PATH.
|
|
|
734417 |
+
|
|
|
734417 |
+So for Fedora MakeMaker builds LD_RUN_PATH is NOT generated by default for
|
|
|
734417 |
+every link. You can still use explicit -rpath ld options or the LD_RUN_PATH
|
|
|
734417 |
+environment variable during the build to generate an RPATH for the binaries.
|
|
|
734417 |
+
|
|
|
734417 |
+You can set the USE_MM_LD_RUN_PATH attribute to 1 on the MakeMaker command
|
|
|
734417 |
+line or in the WriteMakefile arguments to enable generation of LD_RUN_PATH
|
|
|
734417 |
+for every link command.
|
|
|
734417 |
+
|
|
|
734417 |
+USE_MM_LD_RUN_PATH will default to 1 (LD_RUN_PATH will be used) IF the
|
|
|
734417 |
+$USE_MM_LD_RUN_PATH environment variable is set during a MakeMaker run.
|
|
|
734417 |
+
|
|
|
734417 |
=item VENDORPREFIX
|
|
|
734417 |
|
|
|
734417 |
Like PERLPREFIX, but only for the vendor install locations.
|
|
|
734417 |
diff -up perl-5.14.0/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm.usem perl-5.14.0/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
|
|
|
734417 |
--- perl-5.14.0/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm.usem 2011-05-08 05:10:08.000000000 +0200
|
|
|
734417 |
+++ perl-5.14.0/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm 2011-05-17 11:14:22.172115972 +0200
|
|
|
734417 |
@@ -944,7 +944,7 @@ $(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $
|
|
|
734417 |
}
|
|
|
734417 |
|
|
|
734417 |
my $ld_run_path_shell = "";
|
|
|
734417 |
- if ($self->{LD_RUN_PATH} ne "") {
|
|
|
734417 |
+ if (($self->{LD_RUN_PATH} ne "") && ($self->{USE_MM_LD_RUN_PATH})) {
|
|
|
734417 |
$ld_run_path_shell = 'LD_RUN_PATH="$(LD_RUN_PATH)" ';
|
|
|
734417 |
}
|
|
|
734417 |
|