aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1991-06-12 21:34:45 +0000
committerK. Richard Pixley <rich@cygnus>1991-06-12 21:34:45 +0000
commit5d63a6687f3c6c025ef563bb3695b2f08a1f959c (patch)
treeb70d9f86bc7ddf5e5dcb6d0de3e0b1d1c411bfbd /ld
parent7187e60cbe6f87aaf2d0e3b81abd9b23cb14b127 (diff)
downloadgdb-5d63a6687f3c6c025ef563bb3695b2f08a1f959c.zip
gdb-5d63a6687f3c6c025ef563bb3695b2f08a1f959c.tar.gz
gdb-5d63a6687f3c6c025ef563bb3695b2f08a1f959c.tar.bz2
Awk for version number.
Diffstat (limited to 'ld')
-rw-r--r--ld/Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/Makefile.in b/ld/Makefile.in
index 2c0aa70..6dfab10 100644
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
@@ -8,7 +8,7 @@ srcdir = .
destdir = /usr/local
-version=`$(srcdir)/../gcc$(subdir)/gcc -dumpversion`
+version=`awk '{print substr ($$4, 2, length ($$4) - 3); }' $(srcdir)/../gcc/version.c`
prefix = $(destdir)
bindir = $(prefix)/bin
libdir = $(prefix)/lib