From owner-freebsd-hackers Sun Jun 22 22:55:56 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id WAA13732 for hackers-outgoing; Sun, 22 Jun 1997 22:55:56 -0700 (PDT) Received: from rah.star-gate.com (rah.star-gate.com [204.188.121.18]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA13727 for ; Sun, 22 Jun 1997 22:55:53 -0700 (PDT) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.5/8.8.5) with ESMTP id WAA19192; Sun, 22 Jun 1997 22:55:37 -0700 (PDT) Message-Id: <199706230555.WAA19192@rah.star-gate.com> X-Mailer: exmh version 1.6.9 8/22/96 To: Narvi cc: hackers@FreeBSD.ORG Subject: Re: Tcl loadable packages In-reply-to: Your message of "Sun, 22 Jun 1997 21:55:17 +0300." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 22 Jun 1997 22:55:37 -0700 From: Amancio Hasty Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk ld -Dshareable -o foo.so *.o >From the ld man page: -Bshareable Instructs the linker to build a shared object from the object files rather than a normal executable image. Also you can name your loadable module anything that you want however the the program loader has to know the name of the shareable object. Also just peruse at the tcl port for further ideas and I think that it comes with a test call dltest. >From my current port project for the University's CLSU Toolkit (speech processing system): ${WISH} <<_END_ wm withdraw . pkg_mkIndex . *[info sharedlibextension] exit _END_ The above script from the makefile builds a tcl index for all the *.so files . Amancio >From The Desk Of Narvi : > > If one was to make a port of tcl loadable package, how would one > go about it? > > Well, I know I have to make a shared library. How am I to name it > - the original makefile, that does not work on FreeBSD tries to > just make a xxxx.so file. > > Where am I to install it? > > Would it be addvisable to make a short tcl script for easy loading > it? > (it would only contain something like > load /usr/local/.../xxx.so.1.0 xxxx) > > Sander > > There is no love, no good, no happiness and no future - > all these are just illusions. >