From: Andrew Tridgell Date: Tue, 9 Jun 2009 04:18:58 +0000 (+1000) Subject: try to get PICFLAG right for HP-UX with gcc X-Git-Tag: tdb-1.1.5~158 X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=commitdiff_plain;h=f7ba8ba5c3dee9f422c6a3c8470197b12ae5b213;ds=inline try to get PICFLAG right for HP-UX with gcc --- diff --git a/lib/replace/libreplace_ld.m4 b/lib/replace/libreplace_ld.m4 index 6a99e966532..8ab5e78765e 100644 --- a/lib/replace/libreplace_ld.m4 +++ b/lib/replace/libreplace_ld.m4 @@ -71,13 +71,12 @@ case "$host_os" in PICFLAG="-O2" ;; *hpux*) - if test $ac_cv_prog_cc_Ae = yes; then - PICFLAG="+z +ESnolit" - elif test "${GCC}" = "yes"; then + if test "${GCC}" = "yes"; then PICFLAG="-fPIC" - fi - if test "$host_cpu" = "ia64"; then - PICFLAG="+z" + elif test "$host_cpu" = "ia64"; then + PICFLAG="+z" + elif test $ac_cv_prog_cc_Ae = yes; then + PICFLAG="+z +ESnolit" fi ;; *osf*)