[rfa/utils] Makefile.tpl: remove bogus configure rule
Michael Chastain
mec.gnu@mindspring.com
Sat Aug 7 11:51:00 GMT 2004
This patch fixes PR gdb/1480, again.
The problem is a build failure on native hppa2.0w-hp-hpux11.11
with hpux make. Here is what happens:
utils/configure.in and utils/configure have the same timestamp,
down to the second.
hpux make sees this and wants to rebuild utils/configure.
this is definitely a bug in hpux make.
it violates single unix spec v3.
it violates hp's own documentation.
Last time I fixed this just by 'touch configure', but a permanent
fix would be better.
I investigated why hpux make wants to rebuild utils/configure.
It's because utils/Makefile.tpl has a rule to rebuild configure!
I think this rule is a bad idea. None of the other */Makefile.in
files has such a rule. So how about we just kill it?
Tested on:
native i686-pc-linux-gnu with gnu make 3.79.1
native hppa2.0w-hp-hpux11.11 with hpux make
If this patch is okay with Nathanael, then I will go ahead and
commit it.
2004-08-07 Michael Chastain <mec.gnu@mindspring.com>
Re-fix PR gdb/1480.
* Makefile.tpl: Remove rule to run autoconf.
* Makefile.in: Regenerate.
Index: Makefile.tpl
===================================================================
RCS file: /cvs/src/src/utils/Makefile.tpl,v
retrieving revision 1.3
diff -c -3 -p -r1.3 Makefile.tpl
*** Makefile.tpl 23 Nov 2002 04:10:00 -0000 1.3
--- Makefile.tpl 7 Aug 2004 11:05:30 -0000
*************** in
*** 14,20 ****
#
# Makefile.tpl, Makefile.in, Makefile
! # Copyright 2002 Free Software Foundation
#
# This file is part of GDB.
#
--- 14,20 ----
#
# Makefile.tpl, Makefile.in, Makefile
! # Copyright 2002, 2004 Free Software Foundation
#
# This file is part of GDB.
#
*************** $(srcdir)/Makefile.in: $(srcdir)/Makefil
*** 98,106 ****
config.status: $(srcdir)/configure
./config.status --recheck
- $(srcdir)/configure: $(srcdir)/configure.in
- cd $(srcdir) && autoconf
-
# Miscellaneous variable setting
AR_FLAGS = qv
FLAGS_TO_PASS = \
--- 98,103 ----
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/utils/Makefile.in,v
retrieving revision 1.5
diff -c -3 -p -r1.5 Makefile.in
*** Makefile.in 5 Aug 2004 19:36:51 -0000 1.5
--- Makefile.in 7 Aug 2004 11:05:30 -0000
***************
*** 1,7 ****
#
# Makefile.tpl, Makefile.in, Makefile
! # Copyright 2002 Free Software Foundation
#
# This file is part of GDB.
#
--- 1,7 ----
#
# Makefile.tpl, Makefile.in, Makefile
! # Copyright 2002, 2004 Free Software Foundation
#
# This file is part of GDB.
#
*************** $(srcdir)/Makefile.in: $(srcdir)/Makefil
*** 85,93 ****
config.status: $(srcdir)/configure
./config.status --recheck
- $(srcdir)/configure: $(srcdir)/configure.in
- cd $(srcdir) && autoconf
-
# Miscellaneous variable setting
AR_FLAGS = qv
FLAGS_TO_PASS = \
--- 85,90 ----
More information about the Gdb-patches
mailing list