WORKAROUND for the new gcc_version problem

Manfred Hollstein manfred@s-direktnet.de
Thu Jun 25 01:34:00 GMT 1998


On Thu, 25 June 1998, 01:03:02, law@hurl.cygnus.com wrote:

 > 
 >   In message < 13713.59639.635878.750449@slsvhmt >you write:
 >   >  > The trailing ".." is wrong.  The net result is we do not find
 >   >  > gcc/version.c and cc1, cc1plus, etc end up installed into the
 >   >  > "UNKNOWN" directory because we didn't find gcc/version.c
 >   > 
 >   > Yes, Franz Sirl already pointed this out; I'm working on it.
 > OK.  Good.

The whole thing is more difficult than I had thought :-( In the
meantime everybody should use this patch for the toplevel configure:

*** configure.orig	Wed Jun 24 08:25:49 1998
--- configure	Thu Jun 25 10:28:29 1998
*************** fi
*** 458,463 ****
--- 458,464 ----
  
  configsub=`echo ${progname} | sed 's/configure$/config.sub/'`
  moveifchange=`echo ${progname} | sed 's/configure$/move-if-change/'`
+ topsrcdir=`cd \`dirname ${progname}\`; pwd`
  
  # this is a hack.  sun4 must always be a valid host alias or this will fail.
  if ${config_shell} ${configsub} sun4 >/dev/null 2>&1 ; then
*************** fi
*** 705,726 ****
  if [ "${with_gcc_version+set}" = set ]; then
      gcc_version="$with_gcc_version"
  else
-     if [ "${srcdir}" = "." ] ; then
- 	if [ "${with_target_subdir}" != "." ] ; then
- 	    topsrcdir=${with_multisrctop}../..
- 	else
- 	    topsrcdir=${with_multisrctop}..
- 	fi
-     else
- 	case ${srcdir} in
- 	    */*/* )	# Need to do this only in subdirectories.
- 		topsrcdir=${srcdir}/..
- 		;;
- 	    * )		# We are already in the topsrcdir.
- 		topsrcdir=${srcdir}
- 		;;
- 	esac
-     fi
      # If gcc's sources are available, extract its version number which is used by
      # $libsubdir.
      if [ -f ${topsrcdir}/gcc/version.c ] ; then
--- 706,711 ----



More information about the Gcc-patches mailing list