libtool-patches
[Top][All Lists]
Advanced

[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: Peter Rosin
Subject: Re: Add lib prefix to library name in the ltdl preloaded symbol lookup
Date: Mon, 26 Jan 2009 22:13:14 +0100
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)

Den 2009-01-26 21:54 skrev Peter Rosin:
Den 2009-01-26 21:19 skrev Charles Wilson:
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?

Ooops, sorry for broadsiding your pending patch like that, I failed to
notice the clash...

Please ignore my patch for now, and I'll do tests here before I resubmit
(once yours is through the queue).

But if you have some time, what tests to you think are likely
to belly up with yours and my changes combined?

Sorry to reply to self, but I think only the need-lib-prefix.at test is
affected by my patch (on cygwin/mingw and many others) since my patch
only changes things when need_lib_prefix!=no which it isn't normally.
Only so in need-lib-prefix.at where the libtool script is edited to fake
that scenario (probably to get testsuite exposure for an uncommon quirk).

need-lib-prefix.at is ok on cygwin and MSYS/MSVC with your and my changes
combined, and I tested that with both ordinary .../configure and
.../configure --disable-static.

But maintainers, please review "[cygwin|mingw] fix dlpreopen with
--disable-static take 4" without regard to my patch.

Cheers,
Peter





reply via email to

[Prev in Thread] Current Thread [Next in Thread]