Date: Sun, 19 Aug 2001 09:23:02 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: Jason Green 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: (message from Jason Green on Sat, 18 Aug 2001 17:45:30 +0100) Subject: Re: Makefiles with DJGPP References: 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 Precedence: bulk > From: Jason Green > 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.