Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jan 2000 20:47:07 -0800
From:      David Dawes <dawes@xfree86.org>
To:        devel@xfree86.org
Cc:        current@freebsd.org
Subject:   problem building XFree86 (pre-3.3.6) on a recent Freebsd 4.0-current
Message-ID:  <20000105204707.A14003@xfree86.org>

next in thread | raw e-mail | index | archive | help
I've just been doing a build test of the pre-3.3.6 version of
XFree86 on a recent FreeBSD 4.0-current, and I've noticed that
/usr/libexec/cpp doesn't predefine the symbol __FreeBSD__.  imake
uses /usr/libexec/cpp.  Is it intentional that /usr/libexec/cpp
not predefine any symbols like this?  I've changed imake to use
/usr/bin/cpp instead, and it seems to work on 3.4 and 4.0.  Should
this be OK on all FreeBSD versions?

--- imakemdep.h	1999/07/29 09:22:27	3.24.2.14
+++ xc/config/imake/imakemdep.h	2000/01/06 04:39:59
@@ -265,8 +265,11 @@
 #ifdef _CRAY
 #define DEFAULT_CPP "/lib/pcpp"
 #endif
-#if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
+#if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
 #define DEFAULT_CPP "/usr/libexec/cpp"
+#endif
+#if defined(__FreeBSD__)
+#define DEFAULT_CPP "/usr/bin/cpp"
 #endif
 #if defined(__sgi) && defined(__ANSI_CPP__)
 #define USE_CC_E


David
-- 
David Dawes                                      Email: dawes@XFree86.org
Co-founder/President, The XFree86 Project, Inc   Phone: +1 570 775 9502
http://www.xfree86.org/                          Fax:   +61 2 9897 3755


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000105204707.A14003>