1# src/template/hpux 2 3# Need this for access to many modern library features 4CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED" 5 6# HP's compiler likes the spelling +O2 not -O2, so adjust default CFLAGS 7if test "$GCC" != yes ; then 8 CFLAGS="+O2" 9fi 10 11# Extra CFLAGS for code that will go into a shared library 12if test "$GCC" = yes ; then 13 CFLAGS_SL="-fPIC" 14else 15 CFLAGS_SL="+Z" 16fi 17 18# Pick right test-and-set (TAS) code. We need out-of-line assembler 19# when not using gcc. 20case $host in 21 hppa*-*-hpux*) 22 if test "$GCC" != yes ; then 23 need_tas=yes 24 tas_file=hpux_hppa.s 25 fi 26 ;; 27esac 28