SONAME clarification
Marco Atzeri
marco_atzeri at yahoo.it
Wed Nov 12 16:24:54 CST 2008
--- "John W. Eaton" ha scritto:
> On 12-Nov-2008, Marco Atzeri wrote:
>
> | Hi All,
> | could someone clarify me the scope of
> |
> | { false, "SONAME_FLAGS", OCTAVE_CONF_SONAME_FLAGS
> },
> |
> | in src/toplev.cc ?
>
> That is just recording the SONAME_FLAGS in the
> struct that
> octave_config_info returns.
>
fine so I should have no consequence to change it.
> | I was trying to get rid of SONAME_FLAGS,
> | to solve the cygwin issue of different
> | prefix between DLL and the import library
> |
> | cygoctave.dll liboctave.dll.a
> |
> | see for reference
> | http://cygwin.com/cygwin-ug-net/dll.html
> |
> | My idea was to define
> | LIBPRE=cyg
> |
> | and to replace SONAME_FLAGS with
> |
> | SOCRUFT_FLAGS='-Wl,--out-implib=libcruft.dll.a'
> | SOOCTAVE_FLAGS='-Wl,--out-implib=liboctave.dll.a'
> |
> SOINTERP_FLAGS='-Wl,--out-implib=liboctinterp.dll.a'
> |
> | for cygwin and leave
>
> It is currently set to
>
> SONAME_FLAGS='-Wl,--out-implib=$@.a'
>
> in configure.in for Cygwin, so I don't see how this
> will change
> anything. In the places where SONAME_FLAGS is used,
> isn't $@ already
> set to libcruft.dll, liboctave.dll, and
> liboctinterp.dll?
>
> Oh, I see, you are changing LIBPRE to "cyg". If you
> do that and you
> also strip it off for the --out-implib option, then
> how about using
> something like
>
> SONAME_FLAGS='-Wl,--out-implib=$(patsubst
> $(LIBPRE)%, %, $@).a'
I need to check, in any case there are other points
where I need to differentiate between
LIBPRE=cyg and an additional SOPRE=lib.
See attached patch, in cygwin it works, and
I should have left correct for all the other systems.
>
> ? Would that do what you want?
>
> Or maybe we need to revisit this whole LIBPRE thing
> so that it is
> used on all systems (i.e., LIBPRE would be set to
> "lib" on Unixy
> systems).
>
> Comments?
>
> jwe
>
Regards
Marco
Unisciti alla community di Io fotografo e video, il nuovo corso di fotografia di Gazzetta dello sport:
http://www.flickr.com/groups/iofotografoevideo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: octave-3.0.3-1.src.patch
Type: text/x-diff
Size: 12934 bytes
Desc: 147576072-octave-3.0.3-1.src.patch
Url : https://www-old.cae.wisc.edu/pipermail/octave-maintainers/attachments/20081112/536b118c/attachment-0001.bin
More information about the Octave-maintainers
mailing list