Mail Archives: djgpp/1998/02/02/16:05:32
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 -