]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
ltoptions.m4: Make aix-soname assignment more clear
authorIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Sat, 18 Jan 2025 13:46:34 +0000 (15:46 +0200)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Thu, 13 Feb 2025 15:02:15 +0000 (17:02 +0200)
The option --with-aix-soname=svr4 does not work the same as using
LT_INIT([aix-soname=svr4]), since the configure script is reordered
depending on which is used. The reordering causes 'enable_shared'
to not be set before processing for 'aix-soname' when using LT_INIT.

For LT_INIT([aix-soname=svr4]) to be set as intended, 'shared' must
be set before 'aix-soname=svr4', like LT_INIT([shared aix-soname=svr4]).

* m4/ltoptions.m4: Warn user if 'enable_shared' has not been set when
  setting 'aix-soname' and add configuration messages to show which
  variant of shared library versioning has been set for 'aix-soname'.
* doc/libtool.texi: Update to specify need for 'shared' to be used
  before 'aix-soname' for LT_INIT.

doc/libtool.texi
m4/ltoptions.m4

index ce0212ed784c05041da3bbd401f05a599e207edb..21bb89080ae155f32c230436891b9b6b55e47f2c 100644 (file)
@@ -2332,6 +2332,9 @@ kinds of shared archives are built. The @code{.la} pseudo-archive specifies
 one or the other depending on whether @option{-brtl} is specified in
 @code{LDFLAGS} when the library is built.
 
+When using @code{LT_INIT}, the @code{shared} option must be set before the
+@code{aix-soname=(svr4|both)} option to ensure shared libraries are built.
+
 @item disable-fast-install
 Change the default behaviour for @code{LT_INIT} to disable
 optimization for fast installation.  The user may still override this
index 7e4d36041916328b829a76410d128b14dacd938a..925415ada57166f712fb485f1e231aee5245c3b2 100644 (file)
@@ -370,8 +370,16 @@ power*-*-aix[[5-9]]*,yes)
     fi
   fi
   ;;
+power*-*-aix[[5-9]]*,'')
+  AC_MSG_WARN([for $host, specify if building shared libraries for versioning (svr4|both)])
+  AC_MSG_CHECKING([which variant of shared library versioning to provide])
+  with_aix_soname=aix
+  AC_MSG_RESULT([(default) $with_aix_soname])
+  ;;
 *)
+  AC_MSG_CHECKING([which variant of shared library versioning to provide])
   with_aix_soname=aix
+  AC_MSG_RESULT([(default) $with_aix_soname])
   ;;
 esac