On Tuesday 29 May 2007, Peter O'Gorman wrote: > On Tue, 2007-05-29 at 19:17 -0400, Mike Frysinger wrote: > > On Tuesday 29 May 2007, Peter O'Gorman wrote: > > > On May 29, 2007, at 1:59 AM, Mike Frysinger wrote: > > > > i just came across libupnp which uses some libtool functionality to > > > > generate a > > > > list of exported symbols and pass it to ld so that only the ones > > > > that are > > > > part of the ABI get exported ... however, this code doesnt take > > > > symbol prefixes into account so in my case, the generated library > > > > doesnt include any > > > > global symbols ;( > > > > > > > > libupnp is using libtool-1.5.22 but a quick glance at current CVS > > > > head indicates this is still a problem ... can someone correct me ? > > > > i'd just run > > > > a small cpp test and see what __USER_LABEL_PREFIX__ is set to .. > > > > gcc always > > > > defines this and in my case, it's: > > > > #define __USER_LABEL_PREFIX__ _ > > > > unless someone has some cool ld/as/string foo to perform a similar > > > > test on > > > > object code ... > > > > > > What system are you running on? > > > > build = powerpc-linux-gnu > > host = bfin-linux-uclibc > > Ok, currently libtool "checks for" that underscore by looking at the > host_os. Using __USER_LABEL_PREFIX__ when building with gcc seems like a > much better plan. > > I'll try to make some libtool time this week and come up with a patch > for this. In the meantime, look at libtool.m4 and see how interix and > darwin deal with this issue, maybe you can come up with something that > will work for your host. Look for 's,^,_,' to find it.
ah, good tip ... i see the tweaks i need to make for bfin* based on the Darwin stuff ... thanks for looking into this, if you need help testing with a real target i'm here :) -mike
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Bug-libtool mailing list Bug-libtool@gnu.org http://lists.gnu.org/mailman/listinfo/bug-libtool