On Thu, Feb 05, 2004 at 03:56:19AM +0300, Alexey Tourbin wrote:

> And thanks for flac.  There's a minor problem when compiling flac:
> libtool warns about mixing up shared and static libraries. Typical
> messages are:
> 
> *** Warning: Linking the shared library libxmms-flac.la against the
> *** static library ../../src/plugin_common/libplugin_common.a is not portable!
> 
> *** Warning: Linking the shared library libxmms-flac.la against the
> *** static library ../../src/share/grabbag/libgrabbag.a is not portable!
> 
> *** Warning: Linking the shared library libxmms-flac.la against the
> *** static library ../../src/share/gain_analysis/libgain_analysis.a is not portable!
> 
> *** Warning: Linking the shared library libxmms-flac.la against the
> *** static library ../../src/share/utf8/libutf8.a is not portable!
> 
> This is because libtool compiles so called position independent
> object code for shared libraries (-fPIC compiler option) and non-PIC
> code for static libraries and executables.  Bringing non-PIC code into
> shared libraries seems to be harmless, though definitely not
> recommended (it affects dynamic linker internals).
> 
> To fix this issue, simply turning static noinst_LIBRARIES into
> libootl noinst_LTLIBRARIES is enough.  Libtool then will manage PIC and
> non-PIC object code automagically.

I ran into the same issue shortly after the release, when updating the
Debian packages, so I fixed it in CVS:

date: 2003/02/07 02:43:02;  author: mzimmerman;  state: Exp;  lines: +2 -2
Build libtool archives instead of plain .a archives, so that PIC versions
are built and can they be portably linked into shared libraries.

However, there has't been a new release since then.

-- 
 - mdz


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Flac-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/flac-dev

Reply via email to