diff --git a/gas/Makefile.in b/gas/Makefile.in index f812ede359..21d832234f 100644 --- a/gas/Makefile.in +++ b/gas/Makefile.in @@ -59,7 +59,7 @@ CCLIBFLAGS = -O # Version of ar to use when compiling gnulib. OLDAR = ar -version=`$(srcdir)/../gcc$(subdir)/gcc -dumpversion` +version=`awk '{print substr ($$4, 2, length ($$4) - 3); }' $(srcdir)/version.c` # Directory where sources are, from where we are. srcdir = . diff --git a/ld/Makefile.in b/ld/Makefile.in index 2c0aa7060e..6dfab10388 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