diff options
author | Peter Anvin <hpa@tazenda.sc.orionmulti.com> | 2005-05-25 10:31:32 -0700 |
---|---|---|
committer | Peter Anvin <hpa@tazenda.sc.orionmulti.com> | 2005-05-25 10:31:32 -0700 |
commit | e525df6a124a87e2dbff2dd2b915efbe7e43e811 (patch) | |
tree | a2a1ab2acdc29cdd95991311dfcf11f97b37775e | |
parent | ea31a2eaf3d41ed7cc7816adda9d76e90796be7d (diff) | |
download | klibc-e525df6a124a87e2dbff2dd2b915efbe7e43e811.tar.gz |
Back out stdin patch to klcc; it's broken.klibc-1.0.13
-rw-r--r-- | klcc.in | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -1,7 +1,5 @@ # -*- perl -*- -use IPC::Open3; - # Standard includes @includes = ("-I${prefix}/${KCROSS}include/arch/${ARCH}", "-I${prefix}/${KCROSS}include/bits${BITSIZE}", @@ -59,7 +57,7 @@ sub files_with_lang($$) { # Skip object files if ( $need ne 'obj' ) { - unless ( $xopt eq $need || $need eq 'stdin') { + unless ( $xopt eq $need ) { push(@as, '-x', $need); $xopt = $need; } @@ -81,10 +79,7 @@ sub syserr($) { # Run a program; printing out the command line if $verbose is set sub mysystem(@) { print STDERR join(' ', @_), "\n" if ( $verbose ); - my $cmd = shift; - my $childpid = open3("<&STDIN", ">&STDOUT", ">&STDERR", $cmd, @_); - waitpid ($childpid, 0); - return $?; + return system(@_); } # @@ -122,11 +117,6 @@ while ( defined($a = shift(@ARGV)) ) { # Not an option. Must be a filename then. push(@files, $a); $flang{$a} = $lang || filename2lang($a); - } elsif ( $a eq '-' ) { - # gcc gets its input from stdin - push(@files, $a); - # prevent setting -x - $flang{$a} = 'stdin' } elsif ( $a =~ /^-print-klibc-(.*)$/ ) { # This test must precede -print if ( defined($conf{$1}) ) { |