]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
MSVC needs a hint to force it to compile either as C or C++.
authorPeter Rosin <peda@lysator.liu.se>
Sat, 2 Aug 2008 12:54:10 +0000 (14:54 +0200)
committerPeter Rosin <peda@lysator.liu.se>
Tue, 13 Jan 2009 09:03:56 +0000 (10:03 +0100)
* libltdl/m4/libtool.m4: Add tag variable compile_tag to
enable tag specific compiler options that are bad in the
linking phase.
* libltdl/config/ltmain.m4sh: Add the tag specific options
to the compile command line.

ChangeLog
libltdl/config/ltmain.m4sh
libltdl/m4/libtool.m4

index 24bfe45d66bd8743e31232c71a69972821c901e3..e1e3bc8397193c8f5a29704a3cbe46a385c0acae 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2008-08-02  Peter Rosin  <peda@lysator.liu.se>
+
+       MSVC needs a hint to force it to compile either as C or C++.
+       * libltdl/m4/libtool.m4: Add tag variable compile_tag to
+       enable tag specific compiler options that are bad in the
+       linking phase.
+       * libltdl/config/ltmain.m4sh: Add the tag specific options
+       to the compile command line.
+
 2008-08-02  Peter Rosin  <peda@lysator.liu.se>
 
        The MSVC linker doesn't have a -L option, and doesn't understand
index b1de591e4ee8804f06c005f77db31208f6ad7a20..b89812a6dd0461d2fafc2624096d144e04406f8e 100644 (file)
@@ -884,6 +884,10 @@ func_mode_compile ()
       pic_mode=default
     fi
 
+    if test -n "$compile_tag"; then
+      base_compile="$base_compile $compile_tag"
+    fi
+
     # Calculate the filename of the output object if compiler does
     # not support -o with -c
     if test "$compiler_c_o" = no; then
index 921521fdc8088fccbd35182b04c57474dc9feaab..9c4a7700a720917c8e1c7d1b6b1f104126a5f94d 100644 (file)
@@ -5243,6 +5243,8 @@ _LT_TAGDECL([], [dashL_envvar], [1],
     [When linking, move all paths specified with -L options to this variable])
 _LT_TAGDECL([], [dashL_envvar_spec], [1],
     [When moving paths with dashL_envvar, prepend this to each path])
+_LT_TAGDECL([], [compile_tag], [1],
+    [Add tag specific option for the compiler])
 dnl FIXME: Not yet implemented
 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
 dnl    [Compiler flag to generate thread safe objects])