This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.


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

Re: gdb distclean : arg list too long


   Date: Sat, 4 Apr 1998 08:16:19 +0200 (MET DST)
   From: "Philippe De Muyter" <phdm@macqel.be>

   On m68k-motorola-sysv, gdb-4.18.97 fails for gnumake distclean with
	   do-distclean : arg list too long
   Here is a patch.

   Sat Apr  4 07:45:45 1998  Philippe De Muyter  <phdm@macqel.be>

	   * Makefile.in (EXTRA_GCC_FLAGS): Useless XFOO=bar definitions removed.

Unfortunately, this patch fails when using GNU make.  This patch will
result in passing an empty string to make, and GNU make will report

make: *** empty string invalid as file name.  Stop.

We need to be able to quote the the LANGUAGES line, or it won't work
if there are spaces.  Because of how shell quoting works, we need to
quote the entire backquoted expression.  That in turns implies that we
need to have something in the string, or make won't like it.

Of course this line doesn't matter for a gdb release, but it does
matter for an egcs release.

I don't see a simple solution at this point.  We could save a few
characters here and there by using [ -n ] and changing XFOO=bar to
x=y.  Would that be enough to make a difference on your host?

Ian