[Vm-dev] plugin location

Ian Piumarta piumarta at speakeasy.net
Thu Aug 27 17:14:31 UTC 2009


On Aug 27, 2009, at 9:32 AM, Bert Freudenberg wrote:

>> HPUX uses .sl & Mac OS X uses .dylib
>
>
> Hmm. So maybe cmake could figure this out?

It does.  add_library(SHARED ...) uses the platform's native format.   
add_library(MODULE ...) uses 'lib' in front and '.so' in back.  There  
are variables to tell you what the native prefix and sufix are for  
libraries.

The biggest issue was libtool using some totally random combination  
of name, lib (or not), .so or .dylib (or not), version number (in one  
two or three parts, correct or all zeros, placed before or after  
the .so and maybe separated by a -, or maybe not) each according to  
the ls bit in /dev/random multiplied by the phase of the moon.   
Buried somewhere in a .lobscure file someplace might be a clue as to  
what it decided to do.

Cheers,
Ian (a cmaker who is never going back to autohell)



More information about the Vm-dev mailing list