Date: Mon, 2 Feb 1998 19:07:04 +0200 (IST) From: Eli Zaretskii To: Rik Blok cc: djgpp AT delorie DOT com Subject: Re: making .cc files In-Reply-To: <34D4EDC7.D2D24204@physics.ubc.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Sun, 1 Feb 1998, Rik Blok wrote: > How do I make the linker link in -lgpp -lstdxxx etc. just for the ccprog > and not for justc? AFAIK, you can't, unless you write explicit link rules for at least one of them. That is what I would recommend to do, since implicit rules should not be used except in simple cases. Another solution would be to add this line to your Makefile: LOADLIBES = -lgpp -lstdcxx This will cause the linker to scan these libraries when linking both programs, but since justc doesn't need any symbols which are inside those libraries, the only effect will be to slow down its linking.