summaryrefslogtreecommitdiffstats
path: root/src/template/hpux
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 19:46:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 19:46:48 +0000
commit311bcfc6b3acdd6fd152798c7f287ddf74fa2a98 (patch)
tree0ec307299b1dada3701e42f4ca6eda57d708261e /src/template/hpux
parentInitial commit. (diff)
downloadpostgresql-15-upstream.tar.xz
postgresql-15-upstream.zip
Adding upstream version 15.4.upstream/15.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/template/hpux')
-rw-r--r--src/template/hpux34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/template/hpux b/src/template/hpux
new file mode 100644
index 0000000..5105a74
--- /dev/null
+++ b/src/template/hpux
@@ -0,0 +1,34 @@
+# src/template/hpux
+
+# Need this for access to many modern library features
+CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
+
+# HP's compiler likes the spelling +O2 not -O2, so adjust default CFLAGS
+if test "$GCC" != yes ; then
+ CFLAGS="+O2"
+fi
+
+# Extra CFLAGS for code that will go into a shared library
+if test "$GCC" = yes ; then
+ CFLAGS_SL="-fPIC"
+else
+ CFLAGS_SL="+Z"
+fi
+
+# Pick right test-and-set (TAS) code. We need out-of-line assembler
+# when not using gcc.
+case $host in
+ hppa*-*-hpux*)
+ if test "$GCC" != yes ; then
+ need_tas=yes
+ tas_file=hpux_hppa.s
+ fi
+ ;;
+esac
+
+case $host_cpu in
+ ia64)
+ DLSUFFIX=".so";;
+ *)
+ DLSUFFIX=".sl";;
+esac