Interesting

Ken Raeburn raeburn@cygnus.com
Wed May 18 23:23:00 GMT 1994


   Date: Wed, 18 May 94 22:22:56 MDT
   From: Jeffrey A Law <law@snake.cs.utah.edu>


   Is gas-2.3 only supposed to build with gnu-make?

No, it should work with as many versions as possible without requiring
unreasonable amounts of work.

   Using 4.4 make on a PA I get:

   rm -f bfd.h-new 64 ../include/bfd.h
   grep BFD_HOST_64_BIT sysdep.h > 64 2>/dev/null || exit 0
   *** Error code 1

   cute.

   Jeff

This was the result of a few rounds of changes.

The intent is that the results of grep are always used, regardless of
the exit status, and that the "error code 1" message shouldn't be
displayed, even with "(ignored)", because it may cause confusion.

Some versions of make don't pass the whole line to one shell
invocation if you use a semicolon instead of "||", so a nonzero exit
status from grep aborts the build.  Most versions of make will display
the "ignored error" messages if you use a "-" prefix instead of the
"exit 0".  Keeping these in mind, how can I shut up BSD4.4 make too?

Does this work for you?

	if grep BFD_HOST_64_BIT sysdep.h > 64 2>/dev/null ; then true; \
	else true; fi

If it does, I'll try it out on some of the other systems, and other
versions of make.




More information about the Gas2 mailing list