summaryrefslogtreecommitdiffstats
path: root/src/template/hpux
blob: 5105a74c78f5f9ac9c5c3b96056e3efd51bb1c6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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