www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/07/08/04:47:27

Date: Wed, 8 Jul 1998 11:46:50 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Martin Str|mberg <ams AT ludd DOT luth DOT se>
cc: DJGPP-WORKERS <djgpp-workers AT delorie DOT com>
Subject: Re: dxegen patch
In-Reply-To: <199807072012.WAA17281@sister.ludd.luth.se>
Message-ID: <Pine.SUN.3.91.980708114624.5286K-100000@is>
MIME-Version: 1.0

On Tue, 7 Jul 1998, Martin Str|mberg wrote:

> > >  $(HOSTBIN)/dxegen.exe : dxegen.c
> > > -       $(GCC) -DDXE_LD=\"$(CROSS_LD)\" dxegen.c -o $@
> > > +       $(GCC) -DDXE_LD=\"$(CROSS_LD)\" -DDXE_GCC=\"$(CROSS_GCC)\" dxegen.c -o $@
> > 
> > In my experience, this is incorrect: CROSS_LD is defined as 
> > /usr/local/whatever/dos-ld or some such, and this fails on DOS.
> 
> Please elaborate. To get somewhere at all compiling natively I had to
> set variables (if that's what they are called in makefiles) CROSS_GCC
> to GCC, respectively. If CROSS_GCC is wrong why isn't CROSS_LD that?

CROSS_LD was originally defined to a value suitable only for
cross-builds.  If your patch included the change for that as well,
then I apologize for overlooking that.

> +# Set CROSS_BUILD = 1 if cross-compiling, otherwise 0
> +#CROSS_BUILD = 1
> +CROSS_BUILD = 0

Isn't it better to make this automatically?  For example:

  ifdef COMSPEC
  CROSS_BUILD = 0
  else
  CROSS_BUILD = 1
  endif

I think we should avoid anything that requires people to look into the
Makefile's in order to get the build right.

- Raw text -


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