Greetings all,
I'm now using libtool-ml to build my project and now need to somehow force
a single library (tcl, :( I know, I know) statically although the dynamic
library exists along side the static one (It would also be next to
impossible for me to remove this). With libtool 1.3 I simply dumped
libtool config in configure.in
libtool --config > libtool.vars
. ./libtool.vars
LINK_STATIC_FLAG=$link_static_flag
AC_SUBST(LINK_STATIC_FLAG)
and then set LDADD in one of my Makefile.am's to
xxx_LDADD = ... $(LINK_STATIC_FLAG) -ltcl8.0
Unfortunately, because libtool-ml rearranges the commands passed to the linker,
the (in the Solaris case) -Bstatic flag happens to get inserted at the beginning,
breaking the linking of all the dynamic libraries.
I've contemplated copying libtcl8.0.a to a different directory and then pointing
into there but unfortunately the location of libtcl8.0.so is shared among
many other libraries that I need to link to, forcing me to symlink all of those
.so's as well.
Any other ideas on forcing statically linking one library?
Thanks,
Chris