* Re: [9fans] linking libs
@ 2002-10-04 15:46 Russ Cox
0 siblings, 0 replies; 2+ messages in thread
From: Russ Cox @ 2002-10-04 15:46 UTC (permalink / raw)
To: 9fans
> what is the correct way to specify libs to be linked (in mkfile)?
>
> LIB=/386/lib/ape/libjasper.a /386/lib/ape/libjpeg.a
> TARG=jasper imgcmp imginfo
>
> ...works, however, I wanted something like -ljasper -ljpeg; I tried:
No you didn't. You really do want
LIB=/$objtype/lib/ape/libjasper.a /$objtype/lib/ape/libjpeg.a
because then mk can see when the binary is out of
date w.r.t. those libraries. If it's too much to type,
you could use
LIB=jasper jpeg
LIB=${LIB:%=/$objtype/lib/ape/lib%.a}
but then that makes it hard to add libraries from
the current directory.
Russ
^ permalink raw reply [flat|nested] 2+ messages in thread
* [9fans] linking libs
@ 2002-10-04 6:08 Peter A. Cejchan
0 siblings, 0 replies; 2+ messages in thread
From: Peter A. Cejchan @ 2002-10-04 6:08 UTC (permalink / raw)
To: 9fans
Please,
what is the correct way to specify libs to be linked (in mkfile)?
LIB=/386/lib/ape/libjasper.a /386/lib/ape/libjpeg.a
TARG=jasper imgcmp imginfo
...works, however, I wanted something like -ljasper -ljpeg; I tried:
LDFLAGS= -ljpeg -ljasper
... without success (it results in
pcc -ljpeg -ljasper -o 8.jasper jasper.8
instead of intended
pcc -o 8.jasper jasper.8 -ljpeg -ljasper
).
What am I doing wrong (sorry, if trivial)???
TIA,
++pac.
Peter A. Cejchan
<pac@neXt.gli.cas.cz>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-04 15:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-04 15:46 [9fans] linking libs Russ Cox
-- strict thread matches above, loose matches on Subject: below --
2002-10-04 6:08 Peter A. Cejchan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).