Date: Wed, 24 Mar 2004 08:56:40 -0700 From: Greg Lewis <glewis@eyesbeyond.com> To: James Raftery <james@now.ie> Cc: freebsd-ports@freebsd.org Subject: Re: net/vnc port - Alpha compile testing Message-ID: <20040324155640.GA34436@misty.eyesbeyond.com> In-Reply-To: <20040324104848.GA42424@bender.kerna.ie> References: <20040322174948.GE1591@bender.kerna.ie> <20040323183724.GA48166@misty.eyesbeyond.com> <20040324104848.GA42424@bender.kerna.ie>
next in thread | previous in thread | raw e-mail | index | archive | help
--0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Mar 24, 2004 at 10:48:48AM +0000, James Raftery wrote: > I've updated the FreeBSD.cf patch (URL above. The Imake.cf patch is > unchanged) to address the -O2 warning on Alpha 4.x and bad paths to cpp. > If you have the time, could you try again please? That version works fine except for the Sparc vs. Alpha problem. The exact version I used is attached. I just fixed that problem, but you probably need to fix the associated comment too. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="patch-Xvnc::config::cf::FreeBSD.cf" --- Xvnc/config/cf/FreeBSD.cf.orig Mon Mar 22 16:41:12 2004 +++ Xvnc/config/cf/FreeBSD.cf Wed Mar 24 10:29:53 2004 @@ -26,6 +26,7 @@ #define UseGas YES #define GnuCpp YES #define HasNdbm YES +#define DBMLibrary /* ndbm is in libc */ #define HasPutenv YES #define HasSnprintf YES #define HasBSD44Sockets YES @@ -50,7 +51,7 @@ #define MkdirHierCmd mkdir -p #define CcCmd cc -#define CppCmd /usr/libexec/cpp +#define CppCmd /usr/bin/cpp #define PreProcessCmd CppCmd #define StandardCppDefines -traditional #if defined(UseInstalled) && (!defined(XF86LinkKit) || !XF86LinkKit) @@ -223,12 +224,29 @@ # define GccGasOption /**/ #endif -#define ServerExtraDefines GccGasOption XFree86ServerDefines +#ifdef i386Architecture +# define ServerExtraDefines GccGasOption XFree86ServerDefines +#else +# define ServerExtraDefines GccGasOption -D_XSERVER64 +#endif #define StandardDefines -DCSRG_BASED +#ifdef i386Architecture +# if OSMajorVersion > 1 +# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME +# else +# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DXNO_SYSCONF +# endif +#else +# if defined(SparcArchitecture) || defined(AlphaArchitecture) +# define ServerOSDefines -DDDXOSINIT +# else +# define ServerOSDefines /**/ +# endif +#endif + #if OSMajorVersion > 1 -#define ServerOSDefines XFree86ServerOSDefines -DDDXTIME #define XawI18nDefines -DUSE_XWCHAR_STRING #define HasMakefileSafeInclude YES #define IncludeMakefile(file) @@# dependencies are in .depend @@ -241,7 +259,6 @@ #endif #define HasMkstemp YES #else -#define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DXNO_SYSCONF #define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC #endif @@ -252,10 +269,15 @@ #endif #endif +/* Suppress "The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM" on Sparc 4.x */ #ifdef i386Architecture # define OptimizedCDebugFlags DefaultGcc2i386Opt #else -# define OptimizedCDebugFlags -O2 +# if defined(AlphaArchitecture) && OSMajorVersion < 5 +# define OptimizedCDebugFlags -O +# else +# define OptimizedCDebugFlags -O2 +# endif #endif #ifndef PreIncDir --0OAP2g/MAC+5xKAE--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040324155640.GA34436>