search for: pathsearch

Displaying 2 results from an estimated 2 matches for "pathsearch".

Did you mean: parsearch
2006 Jan 25
1
Don't hardcode paths in klcc
...aths you make it less portable. Signed-off-by: Martin Michlmayr <tbm@cyrius.com> --- klibc-1.1.16/klcc/makeklcc.pl~ 2006-01-25 21:30:48.000000000 +0000 +++ klibc-1.1.16/klcc/makeklcc.pl 2006-01-25 21:39:59.000000000 +0000 @@ -9,23 +9,6 @@ ($klccin, $klibcconf, $perlpath) = @ARGV; -sub pathsearch($) { - my($file) = @_; - my(@path); - my($p,$pp); - - if ( $file =~ /\// ) { - return File::Spec->rel2abs($file); - } - - foreach $p ( split(/\:/, $ENV{'PATH'}) ) { - $pp = File::Spec->rel2abs(File::Spec->catpath(undef, $p, $file)); - return $pp if ( -x $pp );...
2020 Aug 20
0
[klibc:master] klcc: Treat CC, LD, STRIP as multiple words
...klcc/makeklcc.pl +++ b/klcc/makeklcc.pl @@ -34,21 +34,21 @@ while ( defined($l = <KLIBCCONF>) ) { chomp $l; if ( $l =~ /^([^=]+)\=\s*(.*)$/ ) { $n = $1; $s = $2; + my @s = split(/\s+/, $s); if ( $n eq 'CC' || $n eq 'LD' || $n eq 'STRIP' ) { - $s1 = pathsearch($s); + $s1 = pathsearch($s[0]); die "$0: Cannot find $n: $s\n" unless ( defined($s1) ); - $s = $s1; + $s[0] = $s1; } print "\$$n = \"\Q$s\E\";\n"; print "\$conf{\'\L$n\E\'} = \\\$$n;\n"; print "\@$n = ("; $sep =...