On Tue, Mar 14, 2000 at 04:32:19PM +0800, Petter Reinholdtsen wrote:
>
> What is the easiest way to get the current platforms DLL name ending?
> I want a string containing .so on Linux .sl on HP/UX and .dll on OS/2.
>
> I tried reading ltmain.sh, ltconfig and libtool without discovering
> any method to get this information.
Generate the library with libtool, and then parse the installed .la
file for 'dlname=libname.so' (or sl or dll etc). Or better yet, use
libltdl to load your library, in which case you don't need to know the
correct ending!
Cheers,
Gary.
--
___ _ ___ __ _ mailto:[EMAIL PROTECTED]
/ __|__ _ _ ___ _| | / / | / /_ _ _ _ __ _| |_ __ _ ___ [EMAIL PROTECTED]
| (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \
\___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/
home page: /___/ /___/ gpg public key:
http://www.oranda.demon.co.uk http://www.oranda.demon.co.uk/key.asc