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

HPUX port

This commit is contained in:
alexpeshkoff 2009-07-28 12:28:26 +00:00
parent bb4cbab672
commit fec5a06b91
3 changed files with 16 additions and 9 deletions

View File

@ -40,20 +40,26 @@
# Flags shared by production and debug build
#COMMON_FLAGS= -DHP11 -DHPUX -D_HPUX_SOURCE -D_XOPEN_SOURCE_EXTENDED
COMMON_FLAGS= -DHP11 -DHPUX -D_XOPEN_SOURCE_EXTENDED \
-D_POSIX_C_SOURCE=199506L -mt $(ISA_COMMON_FLAGS)
# Suppress these warnings for now
# 2830, function "operator new..." has no corresponding operator delete
# 4232, conversion to a more strictly aligned type may cause misaligned access
# 749, cast from/to is 'reinterpret_cast'. This operation is non-portable
# 863, result of operation is widened
# 1042, subscript out of range
# 2175, subscript out of range (again)
COMMON_FLAGS= -DHP11 -DHPUX -D_XOPEN_SOURCE_EXTENDED -AA \
+W2830,4232,749,863,1042,2175
# Production flags
PROD_FLAGS= -fast -O -DNDEBUG \
PROD_FLAGS= +Ofast -DNDEBUG \
$(COMMON_FLAGS)
# Devel flags
DEV_FLAGS= -g -AA \
$(COMMON_FLAGS) $(ISA_DEV_FLAGS)
# -z, disallow dereferencing of null pointers at runtime
DEV_FLAGS= -g -z \
$(COMMON_FLAGS)
OS_ServerFiles=inet_server.cpp
Server_main_dummy= os/sun/server_main_dummy.cpp
# link options for HP-UX linker, /usr/bin/ld
LINK_OPTS= $(LDFLAGS) $(THR_FLAGS) $(UNDEF_FLAGS) $(LIB_PATH_OPTS) -AA -latomic

View File

@ -241,6 +241,7 @@ dnl CPU_TYPE=ppc64
case $comp in
aCC) MAKEFILE_PREFIX=hpux_aCC ;
ICU_PLATFORM=HP-UX11ACC ;
PTHREAD_CFLAGS=-mt
;;
*) MAKEFILE_PREFIX=hpux_ia64 ;
;;
@ -258,6 +259,7 @@ dnl CPU_TYPE=ppc64
case $comp in
aCC) MAKEFILE_PREFIX=hpux_aCC ;
ICU_PLATFORM=HP-UX11ACC ;
PTHREAD_CFLAGS=-mt
;;
*) MAKEFILE_PREFIX=hpux ;
;;

View File

@ -377,7 +377,6 @@ extern "C" int remove(const char* path);
#endif
#define IEEE
#pragma OPT_LEVEL 1
// 16-Apr-2002 HP10 in unistd.h Paul Beach
//#define setreuid(ruid, euid) setresuid (ruid, euid, -1)
//#define setregid(rgid, egid) setresgid (rgid, egid, -1)
@ -388,7 +387,7 @@ extern "C" int remove(const char* path);
#define QUADFORMAT "ll"
/* The following macro creates a quad-sized constant, possibly one
which is too large to fit in a long int. */
#define QUADCONST(n) (n##LL)
#define QUADCONST(n) (n)
#ifndef USE_POSIX_THREADS
// HPUX v B.11.23 does not have _POSIX_THREADS defined, their implementation