From: Martin Str|mberg 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk 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