libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AIX: More troubles


From: NOT SPAM
Subject: Re: AIX: More troubles
Date: Thu, 07 Feb 2008 13:07:28 -0700
User-agent: Thunderbird 1.5.0.12 (X11/20071129)

Another problem: If -brtl is used on the flags, it doesn't build shared libraries. Why is this the case, and could there be a way to still output shared libraries regardless?
Daniel Sands wrote:
I have an executable that dlopens modules, and the modules make use of symbols provided by the executable. Since AIX does not export symbols unless either it has to (if needed for direct linkage to a shared object) or you REALLY want it to (either by -bexpall or by providing an exports list), these symbols don't resolve. So it either crashes (if compiled without -brtl) or complains about unresolved references. Is there a Libtool-standard way to make the executable export all of its symbols?

The standard is to add libtool flag -export-dynamic to executable LDFLAGS but may be libtool is not ported to you linker.

For GNU linker:
./libtool --config | grep export_dynamic
export_dynamic_flag_spec="\${wl}--export-dynamic"


Roumen




.






reply via email to

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