compile: implement library search to support MSVC static linking
authorPeter Rosin <peda@lysator.liu.se>
Tue, 21 Sep 2010 18:59:54 +0000 (20:59 +0200)
committerPeter Rosin <peda@lysator.liu.se>
Tue, 21 Sep 2010 18:59:54 +0000 (20:59 +0200)
commit0431dc4403e5c611bc1009f0cf47b20f26407994
tree15229db49415c518eceb117175b0b424a0127e31
parent0a99a243f943f02f97e9fc2df5020d33997a76d0
compile: implement library search to support MSVC static linking

* lib/compile (func_cl_wrapper): Implement library search and
-static option so that the user can select whether to prefer
dll import libraries or static libraries.  This enables MSVC to
link against dlls generated by libtool without requiring libtool
or workarounds such as -lfoo.dll etc.  Makes the tests/static.at
test case in libtool pass.
* tests/compile3.test: Don't trip up if there happens to exist
a "foo" library in the library search path.
* tests/compile6.test: New test, verifying the library search.
* tests/Makefile.am (TESTS): Update.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
ChangeLog
lib/compile
tests/Makefile.am
tests/Makefile.in
tests/compile3.test
tests/compile6.test [new file with mode: 0755]