Question about detecting LD

Kevin Cozens kevin-4dS5u2o1hCn3fQ9qLvQP4Q at public.gmane.org
Fri Sep 10 16:11:14 UTC 2010


Christopher Browne wrote:
> We're looking to detect if a particular function is available, and the
> easiest way of testing for this seems to be to have autoconf/configure
> generate a C program consisting of a call to that function
> (PQisthreadsafe()).

The autoconf/configure tools would be the way to deal with detecting the 
proper linker and options for the various systems you may be targetting.
If you haven't already done so, take a look at libtool. A quick check of 
docs about it indicate it may have the additional tests you require.
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list