delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/02/16:05:32

Date: Mon, 2 Feb 1998 19:07:04 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Rik Blok <blok AT physics DOT ubc DOT ca>
cc: djgpp AT delorie DOT com
Subject: Re: making .cc files
In-Reply-To: <34D4EDC7.D2D24204@physics.ubc.ca>
Message-ID: <Pine.SUN.3.91.980202190629.19322O-100000@is>
MIME-Version: 1.0

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.

- Raw text -


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