www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/07/05/13:39:58

From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
Message-Id: <199807051739.TAA14069@sister.ludd.luth.se>
Subject: A patch more to djlsr202.zip
To: djgpp-workers AT delorie DOT com (DJGPP-WORKERS)
Date: Sun, 5 Jul 1998 19:39:49 +0200 (MET DST)
MIME-Version: 1.0

I suggest this patch to let you set CROSS_BUILD at the start and then
setting CROSS_* automatically:
--- src.org/makefile.def        Sat May 30 18:17:16 1998
+++ src/makefile.def    Sun Jul  5 16:42:20 1998
@@ -2,19 +2,27 @@

 #  These define the cross-to-djgpp and native programs.

+# Set CROSS_BUILD = 1 if cross-compiling, otherwise 0
+#CROSS_BUILD = 1
+CROSS_BUILD = 0
+
 # For building distributed (djgpp) libraries and programs
+ifneq ($(CROSS_BUILD),1)
+CROSS_GCC = gcc
+CROSS_AR = ar
+CROSS_LD = ld
+CROSS_BISON = bison
+else
 CROSS_GCC = gcc-dos
 CROSS_AR = /usr/local/i386-go32-msdos/bin/ar
 CROSS_LD = /usr/local/i386-go32-msdos/bin/ld
 CROSS_BISON = bison
+endif

 # For building native programs; assumes GNU versions
 GCC = gcc
 AR = ar
 LD = ld
 BISON = bison
-
-CROSS_BUILD = 1
-#CROSS_BUILD = 0

 # You may need to replace coff-go32 with coff-i386 in lib/djgpp.djl


Silence,

							MartinS

- Raw text -


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