Libtool (by it's own admission) will not work for C++
shared libraries on most platforms.  Here is a smattering
of what my OS's/Compilers we currently support without using
autoconf (i.e. it had better support these at least!)
These are comments I put in a Makefile.in to help me
determine what had to be done to link on various platforms:
## DEC Alpha OSF1
# CXXLD_SHARE #cxx -all -hidden /usr/lib/cmplrs/cxx/libcxxstd.a
-non_hidden \
# CXXLD_SHARE # -shared -rpath $(DESTDIR)/$(libdir) -soname
$(lib_LIBRARIES)
#             # -o $(lib_LIBRARIES) \
# CXXLD_POST  # -none \
##
## Silicon Graphics IRIX 6.5
# CXXLD_SHARE #CC -Wl,-mmap -multigot -no_prelink -shared \
# CXXLD_SHARE # -no_unresolved -soname $(lib_LIBRARIES) -all
#             # -o $(lib_LIBRARIES)
# CXXLD_POST  # -none \
##
## HP-UX 10.20 & 11.0
# CXXLD_SHARE #aCC  -b +Z -Wl,+s -Wl,+h$(lib_LIBRARIES)
-Wl,+vshlibunsats
#             # -o $(lib_LIBRARIES)  \
##
## Linux 2.2 w/ gcc 2.x
# CXXLD_SHARE #g++ -shared
#             # -o $(lib_LIBRARIES) \
##
## SunOS / Solaris 7
# CXXLD_SHARE #CC -G -mt
#             # -o $(lib_LIBRARIES) \
##
## IBM AIX with xlC
# CXXLD_SHARE #makeC++SharedLib -elib$(PACKAGE).imp -berok -bro -bM:SRE
-p 0
#             # -o $(lib_LIBRARIES) \

Note the simplicity of the Linux/gcc solution.  :)
I suppose the next reply will be "use the CVS libtool..."
but I would prefer not to be on the bleeding edge, and
in addition to that, I don't want to require users to
build and install an alpha libtool.  (Call me crazy)

So is there another answer?

-- 
Robert Boehne             Software Engineer
Ricardo Software   Chicago Technical Center
TEL: (630)789-0003 x. 238
FAX: (630)789-0127
email:  [EMAIL PROTECTED]

Reply via email to