$NetBSD: patch-ai,v 1.4 2004/11/07 12:57:37 markd Exp $

--- config/cf/sun.cf.in.orig	2004-02-02 16:55:26.000000000 +1300
+++ config/cf/sun.cf.in
@@ -19,6 +19,12 @@ XCOMM platform:  $XFree86: xc/config/cf/
 #endif
 XCOMM operating system:  OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
 
+/* This is the XFree86 package - we want to build XFree86 on Solaris */
+#define BuildXFree86OnSparcSunOS YES
+#define HasZlib YES
+#define HasSunC NO
+#define HasGcc2 YES
+
 /*
  * Compiler setup.  This sun.cf file knows what options to use with 
  * certain compilers, including Sun C, CenterLine C, and gcc.  It 
@@ -224,6 +230,14 @@ XCOMM SunPro C++ CplusplusCompilerMajorV
 #endif
 #endif
 
+#define CcCmd @@PKGSRC_CC@@
+#define LdCmd @@PKGSRC_CC@@
+#define CplusplusCmd @@PKGSRC_CXX@@
+#define OptimizedCDebugFlags @@PKGSRC_CFLAGS@@
+#define ExtraLoadFlags -Wl,-R$(USRLIBDIRPATH)
+#define SharedLibraryLoadFlags -shared ExtraLoadFlags
+#define HasLdRunPath NO
+
 # if HasSunC && (CCompilerMajorVersion < 3)
 #  define BootstrapCFlags	-DSVR4
 # else
