diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 12:15:05 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 12:15:05 +0000 |
commit | 46651ce6fe013220ed397add242004d764fc0153 (patch) | |
tree | 6e5299f990f88e60174a1d3ae6e48eedd2688b2b /src/template/hpux | |
parent | Initial commit. (diff) | |
download | postgresql-14-46651ce6fe013220ed397add242004d764fc0153.tar.xz postgresql-14-46651ce6fe013220ed397add242004d764fc0153.zip |
Adding upstream version 14.5.upstream/14.5upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/template/hpux')
-rw-r--r-- | src/template/hpux | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/template/hpux b/src/template/hpux new file mode 100644 index 0000000..50fff80 --- /dev/null +++ b/src/template/hpux @@ -0,0 +1,27 @@ +# 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 |