tech-toolchain archive

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

problems building a file -O0



Hi,
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 @@
 .PATH:                 
${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support/shared
 CPPFLAGS.libc_wrapper.c=-DSELF_CONTAINED_WRAPPER
 CLEANFILES+=           ${BUILDOBJS}
+
+.if ${MACHINE_ARCH} == "vax"
+COPTS.connection.c+= -O0
+.endif
+
 realall: ${BUILDOBJS}
     
 .include <bsd.x11.mk>


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 build.sh, -O0 isn't added and the compiler crash.
Any idea why ? What's the difference between mbmake-vax called from
command line, and from build.sh ?

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index