[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
MSYS+MSVC for libtool head, take 9
From: |
Peter Ekberg |
Subject: |
MSYS+MSVC for libtool head, take 9 |
Date: |
Tue, 16 Aug 2005 02:33:58 +0200 |
Hi!
This one depends on the 'head-lib-as-archiver' patch. But this
patch is diffed against a clean tree, so it might be some fuzz
applying it after applying lib-as-archiver.
I have left out the fixes for the test suite, so some
tests fail due to the testsuite not being in shape for
MSVC. I have fixes for all but two failures in the old
testsuite, for those who have not been following closely.
2005-08-16 Peter Ekberg <address@hidden>
* config/ltmain.m4sh (func_dashL_to_envvar): New function,
moves -L linker options to the dashL_envvar environment
variable.
* config/ltmain.m4sh (func_mode_compile) [MSVC]: For C++, add
the option -TP to the compiler and for C, add the option -TC.
* config/ltmain.m4sh (func_mode_link) [MSVC]: There is no math
library, so drop -lm. The -lfoo notation is not supported, so
convert such occurances to foo.lib. Treat library file names
without regard for case, through the use of file_magic_glob.
When command line length is exceeded during generation of
exported symbols, build a temporary archive using a command
file and export the symbols from that archive. When command
line length is exceeded during archive linking, use a command
file.
* config/ltmain.m4sh (func_mode_link): If the -L flag is not
supported, but additional library paths can be specified with
an environment variable, do so using the new function
func_dashL_to_envvar.
* config/ltmain.m4sh (cwrappersource) [MSVC]: Make it compile.
* config/ltmain.m4sh (funk_mode_link) <prog>: Build the
cwrapper first and then strip the results.
* m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [MSVC]: Flesh out
with a lot of missing bits.
* m4/libtool.m4 (_LT_CHECK_MAGIC_METHOD): New _LT_DECL variable
file_magic_glob, which can be used to have some fuzzyness when
searching for a matching library.
* m4/libtool.m4 (_LT_LINKER_SHLIBS): New _LT_DECL variables
dashL_envvar and dashL_envvar_spec.
* m4/libtool.m4 (_LT_LINKER_SHLIBS) [MSVC]: Make use of
dashL_envvar and flesh out a lot of other missing bits.
* m4/libtool.m4 (_LT_LANG_CXX_CONFIG) [MSVC]: Add support for
MSVC++ as a C++ compiler.
* NEWS: Updated.
Cheers,
Peter
head-msys_msvc-9.patch
Description: head-msys_msvc-9.patch
- MSYS+MSVC for libtool head, take 9,
Peter Ekberg <=