]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Made invocation of ltconfig in AC_LIBTOOL_CXX macro more like the
authorOssama Othman <othman@cs.wustl.edu>
Sun, 5 Dec 1999 00:34:58 +0000 (00:34 +0000)
committerOssama Othman <ossama@debian.org>
Sun, 5 Dec 1999 00:34:58 +0000 (00:34 +0000)
one in AC_PROG_LIBTOOL.  This adds some ILD related flags to the
invocation, in addition to providing the $libtool_flags to
ltconfig that was previously in AC_PROG_LIBTOOL (via
AC_LIBTOOL_SETUP).  This fixes an ILD related bug with the C++
support, and also fixes a problem where both the static and shared
libraries were being built even if one of them was explicitly
disabled.

libtool.m4

index 58cde52d7416b793d9f066e36c3754dc1576b4fc..527f096da0700018b6d2506ee4dccd124b04d483 100644 (file)
@@ -678,7 +678,12 @@ lt_save_CC="$CC"
 lt_save_CFLAGS="$CFLAGS"
 dnl Make sure LTCC is set to the C compiler, i.e. set LTCC before CC
 dnl is set to the C++ compiler.
-LTCC="$CC" CC="$CXX" CFLAGS="$CXXFLAGS" ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh || AC_MSG_ERROR([libtool tag configuration failed])
+deplibs_check_method="$deplibs_check_method" \
+file_magic_cmd="$file_magic_cmd" \
+LTCC="$CC" CC="$CXX" CFLAGS="$CXXFLAGS" \
+${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
+--build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh \
+|| AC_MSG_ERROR([libtool tag configuration failed])
 CC="$lt_save_CC"
 CFLAGS="$lt_save_CFLAGS"
 ])