Subject: Re: definition of xf86LoadVBEModule() macro missing from xfree/xc/programs/Xserver/hw/xfree86/vbe/vbe.h?
To: NetBSD X11 Discussion list <tech-x11@NetBSD.org>
From: Nicolas Joly <njoly@pasteur.fr>
List: tech-x11
Date: 07/14/2006 09:20:59
On Thu, Jul 13, 2006 at 08:25:32PM -0400, Greg A. Woods wrote:
> 
> BTW, how the heck to I tell the Imake generated makefiles to _ALWAYS_
> stop on errors!?!?!?!?  (So far as I can tell "-i" is not in MAKEFLAGS)

This is a bug which has been fixed in 4.6.0 :

XFree86 4.5.99.901 (6 March 2006)
[...]
 230. Fix a problem on NetBSD where a build will continue after an error
      (David Dawes).

Try the following patch (untested) :

Index: xc/config/cf/Imake.rules
===================================================================
RCS file: /cvs/xc/config/cf/Imake.rules,v
retrieving revision 3.145
retrieving revision 3.146
diff -u -r3.145 -r3.146
--- xc/config/cf/Imake.rules	14 Oct 2005 15:15:52 -0000	3.145
+++ xc/config/cf/Imake.rules	6 Mar 2006 15:58:01 -0000	3.146
@@ -1704,8 +1719,9 @@
  */
 #ifndef MakeNamedTargetSubdir
 #define MakeNamedTargetSubdir(dir,flags,subname)\
-		(cd dir && $(MAKE) $(MFLAGS) $(PARALLELMFLAGS) \	@@\
-			flags subname)
+		if [ -z "$$_fail" ]; then _fail="exit 1"; fi; \		@@\
+		(cd dir; $(MAKE) $(MFLAGS) $(PARALLELMFLAGS) \		@@\
+			flags subname) || $$_fail
 #endif
 
 /*

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.