Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Apr 1998 18:57:19 +1000 (EST)
From:      John Birrell <jb@cimlogic.com.au>
To:        obrien@NUXI.com
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
Subject:   Re: cvs commit: src/include pthread_np.h
Message-ID:  <199804190857.SAA04828@cimlogic.com.au>
In-Reply-To: <19980419014452.41260@nuxi.com> from David O'Brien at "Apr 19, 98 01:44:52 am"

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804190857.SAA04828>