summaryrefslogtreecommitdiff
path: root/libiberty/maint-tool
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-18 16:43:38 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-18 16:43:38 +0000
commit0bc5435cfbcda6163f12fd0b6fddbd1e893b19dd (patch)
tree678a333ec82bb203284379d3442639aaa13e6db8 /libiberty/maint-tool
parent6c4193b5f9078939d2481198d31aba6c666ddc88 (diff)
downloadgcc-0bc5435cfbcda6163f12fd0b6fddbd1e893b19dd.tar.gz
2004-12-18 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.in (top_builddir): Set to `.'. (OUTPUT_OPTION): Removed. (LIBTOOL): New. (LTLIBOBJS): New. (EXTRA_LTOFILES): New. (FLAGS_TO_PASS): Add EXTRA_LTOFILES. (all): Remove stamp-picdir. (LTCOMPILE): New. (.c.lo): New rule. (REQUIRED_LTOFILES): New. (CONFIGURED_LTOFILES): New. ($(TARGETLIB)): Check .libs for PIC object files. Depend on $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS). (stamp-picdir): Completely removed. (maint-missing): Pass $(REQUIRED_LTOFILES) $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES) $(CONFIGURED_OFILES) (maint-buildall): Depend on $(REQUIRED_LTOFILES) $(CONFIGURED_LTOFILES). (mostlyclean): Also remove *.lo .libs. Run "make maint-deps". * aclocal.m4: Include ../libtool.m4. * config.table: Don't check --enable-shared. * configure.ac (AC_PROG_LIBTOOL): Add. (AC_PROG_CC_C_O): Removed. (OUTPUT_OPTION): Removed. (NO_MINUS_C_MINUS_O): Removed. (ltpexecute): New substitute. (LIBOBJS): Cleanup. * configure: Regenerated. * maint-tool: Updated for .lo/libtool. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92353 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/maint-tool')
-rw-r--r--libiberty/maint-tool9
1 files changed, 3 insertions, 6 deletions
diff --git a/libiberty/maint-tool b/libiberty/maint-tool
index bfc53042247..5e35027712c 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.o"}) {
+ if (! $listed{"$base.lo"}) {
print "O $f\n";
}
}
@@ -213,10 +213,7 @@ sub locals_first {
sub deps {
- $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 .= "\t\$(LTCOMPILE) -c -o \$@ \$<\n";
$crule .= "\n";
$incdir = shift @ARGV;
@@ -265,7 +262,7 @@ sub deps {
}
@deps = sort { &locals_first($a,$b) } keys %scanned;
$obj = $f;
- $obj =~ s/\.c$/.o/;
+ $obj =~ s/\.c$/.lo/;
$obj = "./$obj:";
if ($#deps >= 0) {
print OUT "$obj \$(srcdir)/$f";