From e806b965118d33f9d087c41156dd04d4b83b4180 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 8 Jul 2014 10:03:47 -0600 Subject: [PATCH] Make dynamic shared objects non-writable on HP-UX. Using writable DSOs can substantially increase the load time. --- configure | 10 ++++++---- configure.ac | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/configure b/configure index 8aba39fda..383cfa011 100755 --- a/configure +++ b/configure @@ -14382,8 +14382,9 @@ done INIT_DIR=/sbin/init.d RC_LINK=/sbin/rc2.d/S900sudo - # HP-UX shared libs must be executable - SHLIB_MODE=0755 + # HP-UX shared libs must be executable. + # Load time is much greater if writable so use 0555. + SHLIB_MODE=0555 for ac_func in pstat_getproc do : @@ -14410,8 +14411,9 @@ done INIT_DIR=/sbin/init.d RC_LINK=/sbin/rc2.d/S900sudo - # HP-UX shared libs must be executable - SHLIB_MODE=0755 + # HP-UX shared libs must be executable. + # Load time is much greater if writable so use 0555. + SHLIB_MODE=0555 # The HP bundled compiler cannot generate shared libs if test -z "$GCC"; then diff --git a/configure.ac b/configure.ac index 240e69523..274a2f753 100644 --- a/configure.ac +++ b/configure.ac @@ -1712,8 +1712,9 @@ case "$host" in INIT_DIR=/sbin/init.d RC_LINK=/sbin/rc2.d/S900sudo - # HP-UX shared libs must be executable - SHLIB_MODE=0755 + # HP-UX shared libs must be executable. + # Load time is much greater if writable so use 0555. + SHLIB_MODE=0555 AC_CHECK_FUNCS(pstat_getproc) ;; @@ -1730,8 +1731,9 @@ case "$host" in INIT_DIR=/sbin/init.d RC_LINK=/sbin/rc2.d/S900sudo - # HP-UX shared libs must be executable - SHLIB_MODE=0755 + # HP-UX shared libs must be executable. + # Load time is much greater if writable so use 0555. + SHLIB_MODE=0555 # The HP bundled compiler cannot generate shared libs if test -z "$GCC"; then