summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-06-09 14:18:58 +1000
committerAndrew Tridgell <tridge@samba.org>2009-06-09 14:18:58 +1000
commitf7ba8ba5c3dee9f422c6a3c8470197b12ae5b213 (patch)
treebbf606f9d9cc60874371e000ec84d8820fd6ddae
parentb258c5fa67a8597e6d3fb0c55797f0a451e331b0 (diff)
downloadsamba-f7ba8ba5c3dee9f422c6a3c8470197b12ae5b213.tar.gz
samba-f7ba8ba5c3dee9f422c6a3c8470197b12ae5b213.tar.bz2
samba-f7ba8ba5c3dee9f422c6a3c8470197b12ae5b213.zip
try to get PICFLAG right for HP-UX with gcc
-rw-r--r--lib/replace/libreplace_ld.m411
1 files changed, 5 insertions, 6 deletions
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*)