[sane-devel] Re: Darwin/MacOSX
Sergey Vlasov
vsu at altlinux.ru
Fri Nov 29 14:20:44 GMT 2002
On Fri, Nov 29, 2002 at 15:15:21 +0100, Henning Meier-Geinitz wrote:
> > +++ sane-backends-1.0.9/backend/Makefile.in Sun Nov 24 19:40:38 2002
> > @@ -139,7 +139,7 @@
> > libsane-%.la: %.lo %-s.lo $(EXTRA) $(LIBOBJS)
> > @$(LIBTOOL) $(MLINK) $(CC) -export-dynamic -o $@ $($*_LIBS) \
> > $(LDFLAGS) $(BACKENDLIBS) $^ -rpath $(libsanedir) \
> > - -version-info $(V_MAJOR):$(V_REV):$(V_MINOR)
> > + -version-info $(V_MAJOR):$(V_REV):$(V_MINOR) -module
>
> 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).
> > +++ sane-backends-1.0.9/configure Sun Nov 24 19:40:38 2002
> > @@ -6571,7 +6571,7 @@
> > # cross-compilation, but unfortunately the echo tests do not
> > # yet detect zsh echo's removal of \ escapes. Also zsh
> > mangles
> > # `"' quotes if we put them in here... so don't!
> > - archive_cmds='$nonopt $(test .$module = .yes && echo -bundle ||
> > echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs
> > $deplibs$linker_flags -install_name $rpath/$soname $verstring'
> > + archive_cmds='$nonopt $(test .$module = .yes && echo -bundle ||
> > echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs
> > $deplibs$linker_flags $(test .$module = .yes || (echo -install_name
> > $rpath/$soname $verstring))'
>
> I guess this should be fixed in libtool. If it already is, I'll try to
> use a new libtool version in sane-backends.
And, BTW, 'info autoconf' (Portable Shell) tells that $(...) must not be
used - many shells don't support it (including the latest Solaris one).
More information about the sane-devel
mailing list