[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Add lib prefix to library name in the ltdl preloaded symbol lookup
From: |
Charles Wilson |
Subject: |
Re: Add lib prefix to library name in the ltdl preloaded symbol lookup |
Date: |
Mon, 26 Jan 2009 15:19:58 -0500 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.5.666 |
Peter Rosin wrote:
> This is from need-lib-prefix.at: main.exeS.c when the test
> is run on the tip of the pr-msvc-support branch.
>
> lt__PROGRAM__LTX_preloaded_symbols[] =
> { { "@PROGRAM@", (void *) 0 },
> {"foo1.lib", (void *) 0},
> {"libfoo1_LTX_i", (void *) &foo1_LTX_i},
> {"libfoo1_LTX_f", (void *) &foo1_LTX_f},
>
> The below patch makes that into
>
> {"libfoo1.lib", (void *) 0},
> {"libfoo1_LTX_i", (void *) &foo1_LTX_i},
> {"libfoo1_LTX_f", (void *) &foo1_LTX_f},
>
> which works much better.
>
> The need-lib-prefix.at test still works on Cygwin after this test.
Did you test this in conjunction with the "[cygwin|mingw] fix dlpreopen
with --disable-static take 4" changes, or do I need to do that? Also,
what if the library is not "libfooN.lib", but is instead "cygfoo-N.dll"
(or "foo-N.dll") -- which is another way of asking the same question, I
guess?
--
Chuck