9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] mkfile question
@ 2002-06-14  7:16 forsyth
  0 siblings, 0 replies; 2+ messages in thread
From: forsyth @ 2002-06-14  7:16 UTC (permalink / raw)
  To: 9fans

>>LIB=/$objtype/lib/ape/libsquid.a works, however, this is an ugly workaround: I'd prefer the one with -lsquid

it's precise, and it makes the dependency visible to the mkfile without
building $O^l's library search rules into mk (and those often rely on #pragma lib)
so i don't quite see why it's either `ugly' or a `workaround'.
you could add a pragma lib to the squid include file i suppose.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [9fans] mkfile question
@ 2002-06-14  5:30 Peter A. Cejchan
  0 siblings, 0 replies; 2+ messages in thread
From: Peter A. Cejchan @ 2002-06-14  5:30 UTC (permalink / raw)
  To: 9fans

Please,

how do I link with existing libraries (-lsquid.a) using mk and pcc? I mean to give pcc an -l flag via mk.
libsquid.a is in /386/lib/ape
(I've found nothing very much relevant in mk manpage & the two mk docs, sorry)

I tried :
1.	LIB=squid
2.	LIB=libsquid.a
3.	LDFLAGS=-lsquid

The last option was closest, but has put -lsquid before objects to be linked, and that doesn't work, too.


LIB=/$objtype/lib/ape/libsquid.a works, however, this is an ugly workaround: I'd prefer the one with -lsquid

TIA,
++pac.
--
Peter A. Cejchan
Paleobiology Lab, GLU Acad. Sci. CZ
<pac@next.gli.cas.cz>
[http | ftp]://next.gli.cas.cz


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-14  7:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-14  7:16 [9fans] mkfile question forsyth
  -- strict thread matches above, loose matches on Subject: below --
2002-06-14  5:30 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).