On Mon, 15 May 2000, you wrote:
> > > libfam should export only the symbols listed in fam.h. I know how to
> > > do this with SGI compilers; does anyone know how to do it with g++/GNU
> > > ld?
> >
> > I suggest you use libtool's -export-symbols option. It should take care
> > of any platform-dependencies.
>
> Yes, that's exactly what I want. Thanks!
>
> Except... I tried adding a "fam.sym" file containing the symbols which
> should be exported, and "-export-symbols fam.sym" to libfam_la_LDFLAGS in
> libfam/Makefile.am, and I can see that automake is passing the
> -export-symbols flag to libtool with --mode=link, but libtool doesn't
> appear to pass the right argument on to the linker (this is using SGI
> compilers on IRIX--it should pass "-exports_file fam.sym"). Does this
> sound like a problem with libtool, a misconfiguration, or luser error?
Looks like a libtool error. You can send a bug-report to bug-libtool@xxxxxxxx
> It looks like it might be doing the right thing on Linux, but I didn't get
> any linker warnings there before; you want to try this and see if it fixes
> your problem?
Well, it seems that the not-used symbols are being filtered out of the
"normal symbol table" but not out of the "dynamic symbol table" and that as
such it doesn't solve the problem.
I'm trying to convince the linux linker guys that this is a bug somewhere.
Cheers,
Waldo
--
Source code, list archive, and docs: http://oss.sgi.com/projects/fam/
To unsubscribe: echo unsubscribe fam | mail majordomo@xxxxxxxxxxx
|