This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
RFA: Capture value for LDFLAGS from configure script
- From: Jim Blandy <jimb at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 23 Jul 2002 22:14:26 -0500 (EST)
- Subject: RFA: Capture value for LDFLAGS from configure script
The configure script records any ambient value you set for CFLAGS in
the Makefile.in for GDB. Everywhere else in the `src' tree seems to
do it for LDFLAGS, too, but GDB doesn't. This means, among other
things, that you can end up doing your build with different link flags
than you ran your configure in, which seems wrong. It also means that
if you do want custom LDFLAGS, then you need to pass them explicitly
to both configure and make.
This fixes this, and makes GDB's makefiles more like the other packages'.
2002-07-23 Jim Blandy <jimb@redhat.com>
* Makefile.in (LDFLAGS): Allow the configure script to establish a
default for this.
* gdbserver/Makefile.in (LDFLAGS): Same.
Index: gdb/Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.220
diff -c -r1.220 Makefile.in
*** gdb/Makefile.in 16 Jul 2002 15:19:18 -0000 1.220
--- gdb/Makefile.in 24 Jul 2002 03:10:43 -0000
***************
*** 339,344 ****
--- 339,345 ----
# LDFLAGS is specifically reserved for setting from the command line
# when running make.
+ LDFLAGS = @LDFLAGS@
# Profiling options need to go here to work.
# I think it's perfectly reasonable for a user to set -pg in CFLAGS
Index: gdb/gdbserver/Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/Makefile.in,v
retrieving revision 1.19
diff -c -r1.19 Makefile.in
*** gdb/gdbserver/Makefile.in 11 Jun 2002 17:32:39 -0000 1.19
--- gdb/gdbserver/Makefile.in 24 Jul 2002 03:10:44 -0000
***************
*** 102,107 ****
--- 102,108 ----
# LDFLAGS is specifically reserved for setting from the command line
# when running make.
+ LDFLAGS = @LDFLAGS@
# Perhaps should come from parent Makefile
VERSION = gdbserver-4.12.3