]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (_LT_AC_LANG_CXX_CONFIG)
authorChristian Cornelssen <ccorn@cs.tu-berlin.de>
Wed, 5 Feb 2003 07:03:55 +0000 (07:03 +0000)
committerRobert Boehne <rboehne@gnu.org>
Wed, 5 Feb 2003 07:03:55 +0000 (07:03 +0000)
(AC_LIBTOOL_PROG_LD_SHLIBS): Rewrite printf commands so
that the format string cannot be mistaken as an option.
Reported by Martin MOKREJS.

ChangeLog
libtool.m4

index e3cc606a56706e320464e269879db24ec5048450..1d6ce74a93b9f093c134e1b6878cca789f0423bc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-02-05  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
+
+       * libtool.m4 (_LT_AC_LANG_CXX_CONFIG)
+       (AC_LIBTOOL_PROG_LD_SHLIBS): Rewrite printf commands so
+       that the format string cannot be mistaken as an option.
+       Reported by Martin MOKREJS.
+
 2003-02-05  Robert Boehne  <rboehne@gnu.org>
 
        * libtool.m4: Modify the sys_lib_search_path_spec to allow
index e7c92752d5854f90430bdfbea578077aee82e607..632e35fc4f0afd613396162b87aa21fa69cc3f20 100644 (file)
@@ -3125,7 +3125,7 @@ case $host_os in
       cxx)
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
-       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
          echo "-hidden">> $lib.exp~
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
          $rm $lib.exp'
@@ -5355,7 +5355,7 @@ EOF
       else
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
-       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
        # Both c and cxx compiler support -rpath directly