> > 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?
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? The contents of fam.sym should be:
FAMCancelMonitor
FAMClose
FAMDebugLevel
FamErrlist
FAMErrno
FAMMonitorCollection
FAMMonitorDirectory
FAMMonitorDirectory2
FAMMonitorFile
FAMMonitorFile2
FAMNextEvent
FAMOpen
FAMOpen2
FAMPending
FAMResumeMonitor
FAMSuspendMonitor
--Rusty
--
Source code, list archive, and docs: http://oss.sgi.com/projects/fam/
To unsubscribe: echo unsubscribe fam | mail majordomo@xxxxxxxxxxx
|