delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/05/09/05:13:34

From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
Message-Id: <10305090913.AA25331@clio.rice.edu>
Subject: Re: DXE3 in DJGPP CVS breaks cross-compiling
To: djgpp-workers AT delorie DOT com
Date: Fri, 9 May 2003 04:13:36 -0500 (CDT)
In-Reply-To: <200305081426.01388.pavenis@latnet.lv> from "Andris Pavenis" at May 08, 2003 02:26:01 PM
X-Mailer: ELM [version 2.5 PL2]
Mime-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Two proposed patches to fix part of the problems:

src/makefile:

--- makefile.old        Fri May  9 03:47:26 2003
+++ makefile    Fri May  9 03:29:50 2003
@@ -38,2 +38,3 @@
        $(MAKE) -C stub native
+       $(MAKE) -C utils native
        $(MAKE) -C dxe native


src/utils/makefile:

--- makefile.old        Fri May  9 03:48:46 2003
+++ makefile    Fri May  9 03:37:42 2003
@@ -26,2 +26,8 @@

+native :: $(HOSTBIN)/bin2h.exe
+       $(NOP)
+
+$(HOSTBIN)/bin2h.exe : bin2h.c
+       $(GCC) bin2h.c -o $@
+
 $(BIN)/rem.com : rem.asm

src/dxe/makefile:

--- makefile    Fri May  9 03:42:46 2003
+++ makefile.old        Wed Apr 23 17:11:16 2003
@@ -14,8 +14,9 @@

-native :: $(HOSTBIN)/dxegen.exe
-       $(NOP)
+native :: \
+       $(HOSTBIN)/dxegen.exe \
+       $E

 .o.h:
-       $(CROSS_STRIP) --strip-unneeded $<
-       $(HOSTBIN)/bin2h.exe $< $(basename $<) $@
+       strip --strip-unneeded $<
+       bin2h $< $(basename $<) $@

Note the last dxe makefile dif is partial - it doesn't fix the dxe3gen
compile/link cross issues.

Changing the dxe.h include file was just the first issue - it also uses
unconst.h to silence warnings - which isn't universally available.

I may just put an ifdef in to use relative syntax if the cross LD
define string is passed.  

In the case of big endian - I might make dxe3gen generate a "dummy"
file so the build mostly works, except for EMU387.DXE?

So this still needs to be resolved, but that's all I have time from 
here in Wiesbaden

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019