]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (AC_LIBTOOL_LANG_C_CONFIG): Move static_flag
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 9 Nov 2005 22:06:04 +0000 (22:06 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 9 Nov 2005 22:06:04 +0000 (22:06 +0000)
check..
(AC_LIBTOOL_PROG_COMPILER_PIC): ..here, so that both
`lt_prog_compiler_static' have actually been set, and the check
is applied to each tag.

ChangeLog
libtool.m4

index 8282b525124e2f4f88f2d97e4d745043003a9298..f086a838faaa02d34206d55da66c0501b0798c15 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2005-11-09  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+       * libtool.m4 (AC_LIBTOOL_LANG_C_CONFIG): Move static_flag
+       check..
+       (AC_LIBTOOL_PROG_COMPILER_PIC): ..here, so that both
+       `lt_prog_compiler_static' have actually been set, and the check
+       is applied to each tag.
+
 2005-11-07  Kean Johnston  <jkj@sco.com>
 
        * ltmain.in (link mode) [ sysv4*uw2*, unixware7* ]: Work around linker
index 5b9b34923e604c0426d7393cac03979caed6e5c8..86dfb99c5c75a32da5988389dac14fc4f7a4d2a7 100644 (file)
@@ -2646,16 +2646,6 @@ if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
 fi
 
 
-#
-# Check to make sure the static flag actually works.
-#
-AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
-  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
-  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
-  [],
-  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
-
-
 ## CAVEAT EMPTOR:
 ## There is no encapsulation within the following macros, do not change
 ## the running order or otherwise move them around unless you know exactly
@@ -5256,6 +5246,15 @@ case $host_os in
     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
     ;;
 esac
+
+#
+# Check to make sure the static flag actually works.
+#
+AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
+  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
+  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
+  [],
+  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
 ])