Cross compiling xf-4_3-branch

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


Harold L Hunt II wrote:

> Actually, makedepend *did* know about the w32api directory, it was just
> searching for it in the wrong path:

The paths were hardcoded for non-crosscompiling. On every place where
such a path (eg. /usr/include/w32api) was used I added a switch
#if CrossCompiling
#define StdIncDir CrossCompileDir/...
#else
#define StdIncDir ...
#endif

I've attached the patch for makedepend.

bye
    ago

NP: Deine Lakaien - Fleeting
-- 
 Alexander.Gottwald@informatik.tu-chemnitz.de
 http://www.gotti.org           ICQ: 126018723
-------------- next part --------------
Index: Imakefile
===================================================================
RCS file: /cvsroot/xoncygwin/xc/config/makedepend/Imakefile,v
retrieving revision 1.1.1.2
diff -u -u -r1.1.1.2 Imakefile
--- Imakefile	3 Jun 2003 11:03:08 -0000	1.1.1.2
+++ Imakefile	31 Jul 2003 15:57:26 -0000
@@ -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