> > $ ../configure CC=cl CFLAGS='-MD -Zi' LD=link LDFLAGS='-Wl,-DEBUG' > > NM='dumpbin -symbols' AR=lib STRIP=: RANLIB=: --disable-static > > That will not work (as you noticed) as it will send the -Wl, option > stright to cl when configure tries w/o libtool.
Is there any hope of this working one day? What would it take? I suppose this is an autoconf issue, not a libtool one but am I wrong in thinking that in some more complete sense of msvc support that it should work? > > If I go back to the working configure invocation, but > change my Makefile.am > > with: > > > > libfoo_la_LDFLAGS += -Wl,-DEBUG > > > > The resulting library doesn't contain debug symbols. > > Here's the libtool invocation that creates the library: > > *snip* > > > Should I be doing something else? > > Probably, works for me<tm>. Maybe your autoreconf didn't > really "take" for some reason? (I haven't worked too much > with autoreconf, and don't really know what to expect from > it) I blew away all the stuff related to autoreconf and re-ran it and now it works. If someone is interested in figuring out more about what's going on here, let me know and I'll revert the patches and re-test, etc. > Linking a program: > > $ echo "int main(void) { return 0; }" > main.c > $ ./libtool --tag=CC --mode=link cl -o main main.c -Wl,-DEBUG This works. > Linking a library: > > $ echo "int foo(void) { return 0; }" > foo.c > $ ./libtool --tag=CC --mode=compile ../libltdl/config/compile > cl -o foo.lo -c foo.c > $ ./libtool --tag=CC --mode=link ../libltdl/config/compile cl > -o libfoo.la foo.lo -Wl,-DEBUG -no-undefined -rpath /nowhere So does this. Thanks for your help. -DB