delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/08/19/02:26:20

Date: Sun, 19 Aug 2001 09:23:02 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
Message-Id: <2593-Sun19Aug2001092302+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9
CC: djgpp AT delorie DOT com
In-reply-to: <rq6tnt8ad88jfb7je08e53ti08fb703egh@4ax.com> (message from Jason
Green on Sat, 18 Aug 2001 17:45:30 +0100)
Subject: Re: Makefiles with DJGPP
References: <ijve7.2399$lc6 DOT 1621461 AT carnaval DOT risq DOT qc DOT ca> <rq6tnt8ad88jfb7je08e53ti08fb703egh AT 4ax DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
> Newsgroups: comp.os.msdos.djgpp
> Date: Sat, 18 Aug 2001 17:45:30 +0100
> 
> Another solution to the one already mentioned is to rewrite the internal
> make rule to use g++ for linking rather than gcc.  With ths rule the
> makefile should DTRT however g++/libstdc++ are named:
> 
> LDLIBS = -lm
> 
> %: %.o
> 	$(CXX) $(LDFLAGS) $^ $(LDLIBS) -o $@

I think this is already so, at least with Make 3.79.1: CXX is defined
to be g++ on Unix and GNU/Linux systems and "gpp" for DJGPP.  So this
is indeed a much better solution, assuming that GNU Make 3.79 or later
is used in all cases.

- Raw text -


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