Date: Mon, 1 Jul 2002 18:27:51 +0200 (MEST) From: Paul Everlund <tdv94ped@cs.umu.se> To: freebsd-questions@freebsd.org Subject: Programming: Static libraries Message-ID: <Pine.GSO.4.44.0207011821220.25372-100000@gren.cs.umu.se>
next in thread | raw e-mail | index | archive | help
Hi all! Have a programming C question, that is related to FreeBSD. If I have some code that several applications will use I think it would be nice to put this in some kind of archive, then link that code statically into all the applications. (Do not want to use shared libraries.) I did take a look at <bsd.lib.mk> but don't really know how to use it. I got so far that ranlib lib.a was executed. But how do I use this when compiling my applications, each one using <bsd.prog.mk>? What definitions should I use in <bsd.lib.mk> and <bsd. prog.mk> to make all this happen? Thank you all in advance! Best regards, Paul To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.44.0207011821220.25372-100000>