Subject: | MakeMaker bug parsing LDFLAGS |
Date: | Fri, 19 Aug 2005 21:57:26 +0530 |
From: | "Parimi, Venkateshwara Rao" <Venkateshwara.Rao.Parimi [...] deshaw.com> |
To: | <makemaker [...] perl.org> |
Bug: MakeMaker doesn't understand '-Wl,-rpath,/foo/bar' correctly.
Proposed fix:
$ diff -u /usr/local/lib/perl5/5.8.6/ExtUtils/Liblist/Kid.pm
tmp/ExtUtils/Liblist
--- /usr/local/lib/perl5/5.8.6/ExtUtils/Liblist/Kid.pm 2005-02-26
01:15:14.000000000 -0500
+++ tmp/ExtUtils/Liblist/Kid.pm 2005-08-16 14:16:05.000000000 -0400
@@ -57,7 +57,7 @@
foreach $thislib (split ' ', $potential_libs){
# Handle possible linker path arguments.
- if ($thislib =~ s/^(-[LR]|-Wl,-R)//){ # save path flag type
+ if ($thislib =~ s/^(-[LR]|-Wl,-R|-Wl,-rpath,)//){ # save path flag
type
my($ptype) = $1;
unless (-d $thislib){
warn "$ptype$thislib ignored, directory does not exist\n"
$
Thanks.