[sane-devel] Re: Darwin/MacOSX

Peter O'Gorman peter at pogma.com
Fri Nov 29 14:57:09 GMT 2002


On Friday, November 29, 2002, at 11:20  PM, Sergey Vlasov wrote:

> On Fri, Nov 29, 2002 at 15:15:21 +0100, Henning Meier-Geinitz wrote:
>>>
>>
>> What's the meaning of "-module"? Is it a flag for gcc, ld or libtool?
>
> It is a libtool flag - it tells that we are linking a module for 
> dynamic
> loading (and not a shared library for using with ld ... -lsomething).

indeed

> And, BTW, 'info autoconf' (Portable Shell) tells that $(...) must not 
> be
> used - many shells don't support it (including the latest Solaris one).

But as this is specific for darwin (okay it will cause problems if 
cross-compiling), it is not that significant. libtool current-cvs has 
some similar crap in the darwin archive_cmds.

archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib 
-o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo 
-bundle || echo -dynamiclib) $allow_undefined_flag -o $lib 
${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo 
-install_name $rpath/$soname $verstring)'

It can only get worse :/

Peter




More information about the sane-devel mailing list