try to get PICFLAG right for HP-UX with gcc
authorAndrew Tridgell <tridge@samba.org>
Tue, 9 Jun 2009 04:18:58 +0000 (14:18 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 9 Jun 2009 04:18:58 +0000 (14:18 +1000)
lib/replace/libreplace_ld.m4

index 6a99e9665329ddf11848c5b66843d8a828d30ff3..8ab5e78765ec73d3805755db6d29913fc4299bef 100644 (file)
@@ -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*)