diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2005-03-09 23:55:54 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2005-03-09 23:55:54 +0000 |
commit | 487643bdfd1f186333ad7d8c9d196ce162f908fa (patch) | |
tree | 6b15a21735a3a3979c87c2c183c951b1ba773fa5 /dev-libs/klibc/files | |
parent | new upstream version, fixes #84577 (diff) | |
download | historical-487643bdfd1f186333ad7d8c9d196ce162f908fa.tar.gz historical-487643bdfd1f186333ad7d8c9d196ce162f908fa.tar.bz2 historical-487643bdfd1f186333ad7d8c9d196ce162f908fa.zip |
Patch makeklcc.pl to not generate '' arrays if they are empty, else we get
the issue where '' is passed to ld, etc, and they fail with cannot find
file.
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'dev-libs/klibc/files')
-rw-r--r-- | dev-libs/klibc/files/klibc-1.0-makeklcc-empty-args.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-libs/klibc/files/klibc-1.0-makeklcc-empty-args.patch b/dev-libs/klibc/files/klibc-1.0-makeklcc-empty-args.patch new file mode 100644 index 000000000000..e86ae61ee401 --- /dev/null +++ b/dev-libs/klibc/files/klibc-1.0-makeklcc-empty-args.patch @@ -0,0 +1,31 @@ +If say LDFLAGS = "", then '' gets passed as arg to ld which borks + +--- 1/makeklcc.pl 2005-03-10 00:22:03.000000000 +0200 ++++ 2/makeklcc.pl 2005-03-10 01:26:51.000000000 +0200 +@@ -7,24 +7,14 @@ + + ($klccin, $klibcconf, $perlpath) = @ARGV; + +-# This should probably handle quotes and escapes... +-sub string2list($) +-{ +- my($s) = @_; +- +- $s =~ s/\s+/\',\'/g; +- return "(\'".$s."\')"; +-} +- + print "#!${perlpath}\n"; + + open(KLIBCCONF, '<', $klibcconf) or die "$0: cannot open $klibcconf: $!\n"; + while ( defined($l = <KLIBCCONF>) ) { +- chomp $l; +- if ( $l =~ /^([^=]+)\=(.*)$/ ) { ++ if ( $l =~ /^([^=]+)=(.*)$/ ) { + $n = $1; $s = $2; + print "\$$n = \"\Q$s\E\";\n"; +- print "\@$n = ", string2list($s), ";\n"; ++ print "\@$n = qw( $s );\n"; + print "\$conf{\'\L$n\E\'} = \\\$$n;\n"; + } + } |