Cross compiling xf-4_3-branch

Alexander Gottwald Alexander.Gottwald@s1999.tu-chemnitz.de
Thu Jul 31 16:47:00 GMT 2003


Alexander Gottwald wrote:

>
> I've attached the patch for makedepend.

The cygwin.cf part is needed too *g*

I've attached both parts now.

bye
    ago

NP: Stark - Wield (Kinetic)
-- 
 Alexander.Gottwald@informatik.tu-chemnitz.de
 http://www.gotti.org           ICQ: 126018723
-------------- next part --------------
Index: config/cf/cygwin.cf
===================================================================
RCS file: /cvsroot/xoncygwin/xc/config/cf/cygwin.cf,v
retrieving revision 1.1.1.2
retrieving revision 1.2
diff -u -r1.1.1.2 -r1.2
--- config/cf/cygwin.cf	3 Jun 2003 11:03:04 -0000	1.1.1.2
+++ config/cf/cygwin.cf	31 Jul 2003 16:01:15 -0000	1.2
@@ -135,11 +135,19 @@
 #define PreProcessCmd           CcCmd -E
 
 #ifndef PostIncDir
+#ifdef CrossCompiling
+#define PostIncDir              `CrossCompileDir/CcCmd --print-libgcc-file-name | sed 's,\\\\,/,g' | sed 's,libgcc.a,include,'`
+#else
 #define PostIncDir              `CcCmd --print-libgcc-file-name | sed 's,\\\\,/,g' | sed 's,libgcc.a,include,'`
 #endif
+#endif
 #ifndef ExtraIncDir
+#ifdef CrossCompiling
+#define ExtraIncDir     CrossCompileDir/../include/w32api
+#else
 #define ExtraIncDir		/usr/include/w32api
 #endif
+#endif
 
 #define LdCombineFlags          -r
 
@@ -341,6 +349,14 @@
 #endif
 
 #define XWinServer			YES
+
+/*
+ * We need libX11 and libXext for the X11 Server
+ */ 
+#if XWinServer
+#define BuildX11Lib         YES
+#define BuildXextLib        YES
+#endif
 
 /*
  * 2001-06-19 - SmartScheduler is terribly slow on Cygwin.  It causes
Index: config/makedepend/Imakefile
===================================================================
RCS file: /cvsroot/xoncygwin/xc/config/makedepend/Imakefile,v
retrieving revision 1.1.1.2
retrieving revision 1.2
diff -u -r1.1.1.2 -r1.2
--- config/makedepend/Imakefile	3 Jun 2003 11:03:08 -0000	1.1.1.2
+++ config/makedepend/Imakefile	31 Jul 2003 16:02:23 -0000	1.2
@@ -14,14 +14,21 @@
         LDPRELIBS =
 
 #if HasGcc && !defined(PreIncDir)
+#if CrossCompiling
+#else
 #define PreIncDir /usr/local/lib/gcc-include
 #endif
+#endif
 #ifdef PreIncDir
 PREINCDIR = PreIncDir
 PREINC_DEFINES = -DPREINCDIR=\"$(PREINCDIR)\"
 #endif
 #ifndef StdIncDir
+#if CrossCompiling
+#define StdIncDir Concat(CrossCompileDir,/../include)
+#else
 #define StdIncDir /usr/include
+#endif
 #endif
 STDINCDIR = StdIncDir
 STDINC_DEFINES = -DINCLUDEDIR=\"$(STDINCDIR)\"


More information about the Cygwin-xfree mailing list