[sane-devel] Re: Darwin/MacOSX
Sun, 1 Dec 2002 16:33:07 +0100
On Sun, Dec 01, 2002 at 11:29:02PM +0900, Peter O'Gorman wrote:
> Well, no the LDFLAGS won't work, -module needs to be passed to the
> libsane-%.la target only, LDFLAGS is used by the libsane.la target too,
> this should not be a module but a library. -module flags should be
> passed to libtool on all systems when the object being created is going
> to be runtime loaded,
True. I should have read the libtool doc closer.
> on darwin/Mac OS X things linked with libtool
> using the -module flag may not be used as a dependent library for
> another object, on elf systems the same object format is used for both
> modules and libraries.
Well, that means that you can't link scanimage to e.g.
libsane-mustek.so manually on Darwin, if that one was linked with
-module. That's not nice but most users will never notice :-)
> In other words, if a dynamic loader is found and shared libraries are
> to be built then -module should be in the libsane-%.la target on *all*
> systems. I didn't do that in my patch because darwin appears to be the
> only operating system which actually cares.
I have added this functionality for all systems now (in CVS). We'll
see if it beraks anything. No problems on Linux/x86 at least.
Thanks for all your work.