aboutsummaryrefslogtreecommitdiff
path: root/libiberty/maint-tool
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2004-12-27 21:39:28 +0000
committerDJ Delorie <dj@redhat.com>2004-12-27 21:39:28 +0000
commit46a100497fa66128ee8dd7759b5455705cabd8d9 (patch)
tree905b6c881a177d2ce5e57945b5c5eadcae6353d1 /libiberty/maint-tool
parent0c548fce692d32ea292cd72ff8266005f758e316 (diff)
downloadgdb-46a100497fa66128ee8dd7759b5455705cabd8d9.zip
gdb-46a100497fa66128ee8dd7759b5455705cabd8d9.tar.gz
gdb-46a100497fa66128ee8dd7759b5455705cabd8d9.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/maint-tool')
-rw-r--r--libiberty/maint-tool9
1 files changed, 6 insertions, 3 deletions
diff --git a/libiberty/maint-tool b/libiberty/maint-tool
index 5e35027..bfc5304 100644
--- a/libiberty/maint-tool
+++ b/libiberty/maint-tool
@@ -76,7 +76,7 @@ sub missing {
for $f (sort keys %listed) {
if ($f =~ /(.*)\.c$/) {
$base = $1;
- if (! $listed{"$base.lo"}) {
+ if (! $listed{"$base.o"}) {
print "O $f\n";
}
}
@@ -213,7 +213,10 @@ sub locals_first {
sub deps {
- $crule .= "\t\$(LTCOMPILE) -c -o \$@ \$<\n";
+ $crule = "\tif [ x\"\$(PICFLAG)\" != x ]; then \\\n";
+ $crule .= "\t \$(COMPILE.c) \$(PICFLAG) \$< -o pic/\$@; \\\n";
+ $crule .= "\telse true; fi\n";
+ $crule .= "\t\$(COMPILE.c) \$< \$(OUTPUT_OPTION)\n";
$crule .= "\n";
$incdir = shift @ARGV;
@@ -262,7 +265,7 @@ sub deps {
}
@deps = sort { &locals_first($a,$b) } keys %scanned;
$obj = $f;
- $obj =~ s/\.c$/.lo/;
+ $obj =~ s/\.c$/.o/;
$obj = "./$obj:";
if ($#deps >= 0) {
print OUT "$obj \$(srcdir)/$f";