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