[vsipl++] [patch] Building VSIPL++ shared libraries
Brooks Moses
brooks at codesourcery.com
Fri Feb 27 22:24:38 UTC 2009
Jules Bergmann wrote, at 2/27/2009 2:10 PM:
> Ok to apply?
Given that this is indeed building multiple shared libraries, it seems
odd for the option to be '--enable-shared-lib' in the singular form, not
the plural '--enable-shared-libs'.
Also, do we want to do versioned versions of the .so files? The usual
habit from IBM's libraries is to create library.so.X.Y.Z as the actual
library (where X.Y.Z is the version number), and install library.so.X
and library.so as symlinks to it. They also include a linker options of
"-shared -Wl,-soname=library.so.X" when linking the library; the -shared
part might be redundant but the soname is probably a good idea, as it
(may) enable programs to throw helpful runtime errors if the wrong
version of the library is installed.
Also, a couple of specific comments:
> Index: GNUmakefile.in
> ===================================================================
> --- GNUmakefile.in (revision 236492)
> +++ GNUmakefile.in (working copy)
> @@ -88,8 +88,6 @@
> AR := @AR@
> # The path to the C compiler.
> CC := @CC@
> -# C compilation flags.
> -CFLAGS := @CFLAGS@
> # C preprocessor flags.
> CPPFLAGS := @CPPFLAGS@
> # The path to the C compiler.
What's the purpose of this change? It seems unrelated.
> + <varlistentry>
> + <term><option>--enable-shared-lib</option></term>
> + <listitem>
> + <para>
> + Build shared libraries as well as static libraries. This
> + requires that position independent code be generated,
> + which may reduce performance.
> + </para>
> + </listitem>
> + </varlistentry>
Yay for updating the documentation in the same patch! :) This looks
good, except that that should be "position-independent code" with a hyphen.
- Brooks
More information about the vsipl++
mailing list