From: "Patrick Mitran" Newsgroups: comp.os.msdos.djgpp Subject: Makefiles with DJGPP Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: Date: Wed, 15 Aug 2001 14:03:58 GMT NNTP-Posting-Host: 132.206.69.38 X-Complaints-To: abuse AT mcgill DOT ca X-Trace: carnaval.risq.qc.ca 997884238 132.206.69.38 (Wed, 15 Aug 2001 10:03:58 EDT) NNTP-Posting-Date: Wed, 15 Aug 2001 10:03:58 EDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, I'm trying to write a makefile that will run with DJGPP and Linux. There is only one issue that troubles me. I have a line LDLIBS = -lm -lstdcxx in my makefile. In DJGPP, this links fine, no problem. In linux, I would need the second library to be -lstdc++ instead. How can I make the makefile detect the build environment and choose the right library? Thanks, Patrick