build failure on hp-ux due to incorrect shlib link opt, suffix

Bug #1016351 reported by Michael Pelletier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tokyocabinet
New
Undecided
Unassigned

Bug Description

The HP-UX 11.11 operating system requires shared libraries to have a ".sl" suffix, whereas the Makefile uses ".so" throughout. Creating a symbolic link to the .so file works, though may not be the most desirable solution. I simply made updates to the Makefile to create the symlink during both build and install.

In addition, the linker option to build a shared library is incorrect in the "else" clause of the "SunOS" check. It needs to be "+b" to support the HP-UX 11.11 linker, which doesn't recognize the "-soname" option:

 $(CC) $(CFLAGS) -shared -Wl,+b,libtokyocabinet.so.$(LIBVER) -o $@ \

I added another "if" to check for uname -a | grep "HP-UX"

summary: - build failure on hp-ux
+ build failure on hp-ux due to incorrect shlib link opt, suffix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.