This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building GDB 7.3.92 with MinGW


> Date: Wed, 11 Jan 2012 07:24:41 +0400
> From: Joel Brobecker <brobecker@adacore.com>
> Cc: gdb-patches@sourceware.org
> 
> > 2. "make install-strip" fails in readline/, in sim/, and in gdb/:
> [...]
> > Finally, a question: Why are we installing libraries (libbfd,
> > libopcodes, libiberty) and the standards.info manual?  The libraries
> > are not part of GDB, we import them from elsewhere.  "make install"
> > will happily overwrite existing installation of these libraries that
> > could potentially be newer, coming from their respective upstream
> > distributions.  How about removing these from "make install"?
> 
> We could side-step these issues by documenting in the README that
> GDB should be installed using "make -C gdb install", or "make -C
> gdb install-strip". This is what I personally do.

I like this alternative the best.  Is the patch below OK to install,
including on the branch?

Index: gdb/README
===================================================================
RCS file: /cvs/src/src/gdb/README,v
retrieving revision 1.49
diff -u -r1.49 README
--- gdb/README	4 Jan 2012 04:11:38 -0000	1.49
+++ gdb/README	13 Jan 2012 10:52:12 -0000
@@ -39,6 +39,11 @@
       cd gdb-VERSION
       ./configure
       make
+      cd gdb
+      make install (or "make install-strip")
+
+Alternatively, install with
+
       cp gdb/gdb /usr/local/bin/gdb	(or wherever you want)
 
 However, we recommend that an empty directory be used instead.
@@ -52,7 +57,8 @@
       cd build
       <full path to your sources>/gdb-VERSION/configure
       make
-      cp gdb/gdb /usr/local/bin/gdb	(or wherever you want)
+      cd gdb
+      make install (or "make install-strip")
 
 (Building GDB with DJGPP tools for MS-DOS/MS-Windows is slightly
 different; see the file gdb-VERSION/gdb/config/djgpp/README for details.)
@@ -236,6 +242,15 @@
 configuration files for every directory level underneath (unless
 you tell it not to, with the `--norecursion' option).
 
+   After the build finishes successfully, you can install the built
+GDB like this:
+
+   cd gdb
+   make install
+
+   If you want to install a GDB binary stripped of debugging symbols,
+type "make install-strip" instead of the second line.
+
    You can install `gdb' anywhere; it has no hardwired paths. However,
 you should make sure that the shell on your path (named by the `SHELL'
 environment variable) is publicly readable.  Remember that GDB uses the


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]