tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

problems building a file -O0

on netbsd-4, the compiler dies when building a file in x11/Xserver/os for vax.
Compiling -O0 fixes the crash, so I tried this:

Index: Makefile
RCS file: /cvsroot/src/x11/Xserver/os/Makefile,v
retrieving revision 1.14
diff -u -r1.14 Makefile
--- Makefile    19 Mar 2005 21:41:58 -0000      1.14
+++ Makefile    25 Sep 2008 20:47:48 -0000
@@ -59,6 +59,11 @@
+.if ${MACHINE_ARCH} == "vax"
+COPTS.connection.c+= -O0
 realall: ${BUILDOBJS}
 .include <>

When I call mbmake-vax from the command line in this directory, it works
(-O0 is added when building connection.o, and all is well). When it's
called from, -O0 isn't added and the compiler crash.
Any idea why ? What's the difference between mbmake-vax called from
command line, and from ?

Manuel Bouyer <>
     NetBSD: 26 ans d'experience feront toujours la difference

Home | Main Index | Thread Index | Old Index