Mail Archives: djgpp-workers/1998/07/05/13:39:58
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 -