From owner-freebsd-questions Wed May 20 05:03:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA24479 for freebsd-questions-outgoing; Wed, 20 May 1998 05:03:51 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from glitnir.cfar.umd.edu (arensb@glitnir.cfar.umd.edu [128.8.132.40]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA24466 for ; Wed, 20 May 1998 05:03:44 -0700 (PDT) (envelope-from arensb@cfar.umd.edu) Received: from localhost (arensb@localhost) (known [0]) by glitnir.cfar.umd.edu (8.8.5/8.8.4) with SMTP id IAA11797; Wed, 20 May 1998 08:03:40 -0400 (EDT) X-Authentication-Warning: glitnir.cfar.umd.edu: arensb owned process doing -bs Date: Wed, 20 May 1998 08:03:40 -0400 (EDT) From: Andrew Arensburger To: Patrick Gardella cc: freebsd-questions@FreeBSD.ORG Subject: Re: Perl Shared Library In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 20 May 1998, Patrick Gardella wrote: > But I do want to figure this out, so I'll go ahead and try them. Just for completeness, now that I've had a chance to look it up: create a file 'func.c', containing some random function. Now let's make it into a shared library. Use the following Makefile: ----- BEGIN ---------------------------------------------- SRCS = func.c LIB = foo SHLIB_MAJOR = 1 SHLIB_MINOR = 0 .include ----- END ------------------------------------------------ Run 'make'. This will create the shared library "libfoo.1.0". Save the output of 'make' to a file, and you'll have a handy-dandy recipe for future reference. -- Andrew Arensburger, Systems guy Center for Automation Research arensb@cfar.umd.edu University of Maryland Gotta run. My neighbors just sighted Elvis making crop circles. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message