## -*-makefile-*-
## HP/UX-specific setup using aCC
-## Copyright (c) 1999-2004, International Business Machines Corporation and
+## Copyright (c) 1999-2007, International Business Machines Corporation and
## others. All Rights Reserved.
## Commands to generate dependency files
THREADSCPPFLAGS = -D_REENTRANT -D_THREAD_SAFE
# Use Extended ANSI mode, which is useful for 64-bit numbers
-# +Olibcalls uses intrinsic functions for strlen and others
# +W ignores some warnings
-# 495 The linkage directive is ignored for an object or function...
# 740 Unsafe cast between pointers/references to incomplete classes...
# 749 This operation is non-portable and potentially unsafe.
# (Ironically the solution to fix this warning is non-portable)
# 823 Redundant preprocessing concatenation operation results in two valid
# preprocessing tokens. This comes from INT64_C in <inttypes.h>
-CFLAGS += +Olibcalls -Ae +ESlit
-CXXFLAGS += +Olibcalls +W495 +W740 +W749 +W823
+# 4232 conversion to a more strictly aligned type may cause misaligned access.
+CFLAGS += -Ae +ESlit
+CXXFLAGS += +W740 +W749 +W823 +W4232
+
+# -Bhidden_def Hides all symbols defined in the module.
+#LIBCFLAGS = -Bhidden_def
+#LIBCXXFLAGS = -Bhidden_def
## Commands to compile
COMPILE.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c
## Common 'default' path to ensure the sanity of users. Search the current
## directory, at least.
-LD_DEFAULTPATH= -Wl,+b,.:'$$'ORIGIN/
+LD_DEFAULTPATH= -Wl,+b,'$$'ORIGIN/
# Use SHLIB_PATH and LD_LIBRARY_PATH to locate shared libraries
LDFLAGS += -Wl,+s $(LD_DEFAULTPATH)
## The type of assembly needed when pkgdata is used for generating shared libraries.
# Commented out for now because the hp1 test machine runs out of memory.
-#GENCCODE_ASSEMBLY=-a aCC
+#GENCCODE_ASSEMBLY=-a aCC-parisc
## Shared object suffix
SO= sl