From f7ba8ba5c3dee9f422c6a3c8470197b12ae5b213 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 9 Jun 2009 14:18:58 +1000 Subject: try to get PICFLAG right for HP-UX with gcc --- lib/replace/libreplace_ld.m4 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/replace/libreplace_ld.m4 b/lib/replace/libreplace_ld.m4 index 6a99e96653..8ab5e78765 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*) -- cgit