[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: pr-msvc-support: building .DLLs with symbols
From: |
David Byron |
Subject: |
RE: pr-msvc-support: building .DLLs with symbols |
Date: |
Sat, 12 Sep 2009 15:02:00 -0700 |
> > $ ../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
- Re: pr-msvc-support: building .DLLs with symbols, Peter Rosin, 2009/09/10
- pr-msvc-support rules and issues (was: Re: pr-msvc-support: building .DLLs with symbols), Peter Rosin, 2009/09/17
- Re: pr-msvc-support: building .DLLs with symbols, Ralf Wildenhues, 2009/09/18
- Re: pr-msvc-support: building .DLLs with symbols, Peter Rosin, 2009/09/18
- Re: pr-msvc-support: building .DLLs with symbols, Christopher Hulbert, 2009/09/18
- Re: pr-msvc-support: building .DLLs with symbols, Peter Rosin, 2009/09/18
- Re: pr-msvc-support: building .DLLs with symbols, Christopher Hulbert, 2009/09/18
- Re: pr-msvc-support: building .DLLs with symbols, Peter Rosin, 2009/09/18
- Re: pr-msvc-support: building .DLLs with symbols, Christopher Hulbert, 2009/09/21
- Re: pr-msvc-support: building .DLLs with symbols, Peter Rosin, 2009/09/21