8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 16:43:03 +01:00

front port recent 2.5 HPUX changes

This commit is contained in:
verbguy 2009-11-02 21:08:58 +00:00
parent 6529e216c7
commit 5e904927f7
4 changed files with 27 additions and 7 deletions

View File

@ -54,7 +54,8 @@
# 2111, statement is unreachable (used to suppress g++ warnings)
# 2161, unrecognized pragma (mostly FB_COMPILER_MESSAGE)
# 2177, function declared but never referenced
COMMON_FLAGS= -DHP11 -DHPUX -D_XOPEN_SOURCE_EXTENDED -AA -ext \
COMMON_FLAGS= -DHP11 -DHPUX -D_XOPEN_SOURCE_EXTENDED -D_HP_ATOMIC_INLINE \
-AA +e \
+W2830,4232,749,863,1042,2175,2111,2161,2177
# Flags specific to production or debug build...
@ -81,9 +82,9 @@ endif
OS_ServerFiles=inet_server.cpp
# link options for HP-UX linker, /usr/bin/ld
LINK_OPTS= $(LDFLAGS) $(THR_FLAGS) $(UNDEF_FLAGS) $(LIB_PATH_OPTS) -AA -ext -latomic
LINK_LIBS+= -latomic $(ICU_LIBS)
LIB_LINK_OPTIONS= $(LDFLAGS) $(THR_FLAGS) -b -ext -latomic
LINK_OPTS= $(LDFLAGS) $(THR_FLAGS) $(UNDEF_FLAGS) $(LIB_PATH_OPTS) -AA +e -Wl,+concatrpath
LINK_LIBS+= $(ICU_LIBS)
LIB_LINK_OPTIONS= $(LDFLAGS) $(THR_FLAGS) -b +e -Wl,+concatrpath
LINK_UDF_LIBS+=$(ICU_LIBS)

View File

@ -642,8 +642,14 @@ if test "$EDITLINE_FLG" = "Y"; then
AC_SUBST(TERMLIB)
XE_APPEND(-l$TERMLIB, LIBS)
fi
AC_SEARCH_LIBS(inet_aton, resolv)
AC_CHECK_LIB(atomic_ops, main)
dnl HP-UX atomic routines are in atomic library, not standard C library.
dnl If we can't find atomic routines in vendor library, look for atomic_ops.
AC_SEARCH_LIBS(atomic_inc, atomic,,
AC_SEARCH_LIBS(main, atomic_ops))
dnl Check for libraries for static C++ runtime linking
AC_CHECK_LIB(supc++, main, XE_APPEND(-lsupc++, STATIC_CXXSUPPORT_LIB))

View File

@ -710,6 +710,11 @@ td.right {
Firebird requires the HP-UX Atomic APIs ("AtomicAPI" bundle),
released as an optional Software Pack (SPK) for HP-UX 11i v2 or v3.
</P>
<P>
The Firebird build process requires HP linker (ld) option
"-concatrpath." -concatrpath is provided in the June 2007 patch bundle.
This update is available for HP-UX 11i v2 and v3.
</p>
<p>
Compiler version was HP ANSI C++ A.06.23.
</p>
@ -735,6 +740,11 @@ td.right {
Firebird requires the HP-UX Atomic APIs ("AtomicAPI" bundle),
released as an optional Software Pack (SPK) for HP-UX 11i v2 or v3.
</P>
<P>
The Firebird build process requires HP linker (ld) option
"-concatrpath." -concatrpath is provided in the June 2007 patch bundle.
This update is available for HP-UX 11i v2 and v3.
</p>
<p>
Compiler version was HP ANSI C++ A.03.85. <b><i>Note, A.03.85 is
the latest and last release of the aCC compiler on PA-RISC</i></b>.

View File

@ -176,7 +176,7 @@ private:
} // namespace Firebird
#elif defined(HPUX)
#elif defined(HPUX) && defined(HAVE_ATOMIC_H)
#include <atomic.h>
@ -428,12 +428,15 @@ private:
} // namespace Firebird
#elif defined(HAVE_AO_COMPARE_AND_SWAP_FULL)
#elif defined(HAVE_AO_COMPARE_AND_SWAP_FULL) && !defined(HPUX)
// Sometimes in the future it can become the best choice for all platforms.
// Currently far not CPUs/OSs/compilers are supported well.
// Therefore use it as last chance to build successfully.
// wbo 2009-10 - We tested libatomic_ops against Firebird 2.5/HPUX and the
// atomic implementation was incomplete on IA-64/HPPA
#include <atomic_ops.h>
namespace Firebird {