8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 20:03:02 +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 # Flags shared by production and debug build
#COMMON_FLAGS= -DHP11 -DHPUX -D_HPUX_SOURCE -D_XOPEN_SOURCE_EXTENDED # Suppress these warnings for now
COMMON_FLAGS= -DHP11 -DHPUX -D_XOPEN_SOURCE_EXTENDED \ # 2830, function "operator new..." has no corresponding operator delete
-D_POSIX_C_SOURCE=199506L -mt $(ISA_COMMON_FLAGS) # 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 # Production flags
PROD_FLAGS= -fast -O -DNDEBUG \ PROD_FLAGS= +Ofast -DNDEBUG \
$(COMMON_FLAGS) $(COMMON_FLAGS)
# Devel flags # Devel flags
DEV_FLAGS= -g -AA \ # -z, disallow dereferencing of null pointers at runtime
$(COMMON_FLAGS) $(ISA_DEV_FLAGS) DEV_FLAGS= -g -z \
$(COMMON_FLAGS)
OS_ServerFiles=inet_server.cpp OS_ServerFiles=inet_server.cpp
Server_main_dummy= os/sun/server_main_dummy.cpp
# link options for HP-UX linker, /usr/bin/ld # link options for HP-UX linker, /usr/bin/ld
LINK_OPTS= $(LDFLAGS) $(THR_FLAGS) $(UNDEF_FLAGS) $(LIB_PATH_OPTS) -AA -latomic 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 case $comp in
aCC) MAKEFILE_PREFIX=hpux_aCC ; aCC) MAKEFILE_PREFIX=hpux_aCC ;
ICU_PLATFORM=HP-UX11ACC ; ICU_PLATFORM=HP-UX11ACC ;
PTHREAD_CFLAGS=-mt
;; ;;
*) MAKEFILE_PREFIX=hpux_ia64 ; *) MAKEFILE_PREFIX=hpux_ia64 ;
;; ;;
@ -258,6 +259,7 @@ dnl CPU_TYPE=ppc64
case $comp in case $comp in
aCC) MAKEFILE_PREFIX=hpux_aCC ; aCC) MAKEFILE_PREFIX=hpux_aCC ;
ICU_PLATFORM=HP-UX11ACC ; ICU_PLATFORM=HP-UX11ACC ;
PTHREAD_CFLAGS=-mt
;; ;;
*) MAKEFILE_PREFIX=hpux ; *) MAKEFILE_PREFIX=hpux ;
;; ;;

View File

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