From owner-cvs-include Sun Apr 19 01:59:34 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA20039 for cvs-include-outgoing; Sun, 19 Apr 1998 01:59:34 -0700 (PDT) (envelope-from owner-cvs-include) Received: from cimlogic.com.au (cimlogic.com.au [203.36.2.25]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA20022; Sun, 19 Apr 1998 08:59:20 GMT (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.8.5/8.8.7) id SAA04828; Sun, 19 Apr 1998 18:57:19 +1000 (EST) (envelope-from jb) From: John Birrell Message-Id: <199804190857.SAA04828@cimlogic.com.au> Subject: Re: cvs commit: src/include pthread_np.h In-Reply-To: <19980419014452.41260@nuxi.com> from David O'Brien at "Apr 19, 98 01:44:52 am" To: obrien@NUXI.com Date: Sun, 19 Apr 1998 18:57:19 +1000 (EST) Cc: jb@cimlogic.com.au, tg@ihf.rwth-aachen.de, jb@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, cvs-include@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-include@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk David O'Brien wrote: > Can someone provided me a proper LIB_SPEC, or a little tutorial in its > formatting? LIB_SPEC 101: %{foo:arg} => if the command line contains "-foo" then add "arg" to the ld command line. %{foo:%{!bar:arg}} => if the command line contains "-foo" but not "-bar" then add "arg" to the ld command line. %{foo:%{!bar:arg}{bar:arg1}} => if the command line contains "-foo" but not "-bar" then add "arg" to the ld command line or if the command line contains both "-foo" and "-bar", then add "arg1" to the command line. Something like that. 8-) If you grab the LIB_SPEC from current, it will need the kthread references stripped. "An exercise for the reader". 8-) -- John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/ CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137