]> granicus.if.org Git - sudo/commitdiff
now use -no_library_replacement for osf
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 20 Sep 1994 23:37:13 +0000 (23:37 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 20 Sep 1994 23:37:13 +0000 (23:37 +0000)
don't make a static binary for hpux >= 9.0

configure.in

index a523ffd4b0052c804d67dfb6d8766ba724112fcc..ab1c0b43a817108f1b6421651269a580267dac97 100644 (file)
@@ -81,18 +81,19 @@ case "$OS" in
                AC_DEFINE(_ALL_SOURCE)
                ;;
     "hp-ux")   echo "Looks like HP-UX"
-               if test -n "$GCC"; then
-                   STATIC_FLAGS="-static"
-               else
-                   STATIC_FLAGS="-Wl,-a,archive"
+               if test "$OSREV" -lt 9 ; then
+                   if test -n "$GCC"; then
+                       STATIC_FLAGS="-static"
+                   else
+                       STATIC_FLAGS="-Wl,-a,archive"
+                   fi
+               fi
+               if test -n "$AFS" ; then
+                   LIBS="-lBSD ${LIBS}"
                fi
                ;;
     "osf1")    echo "Looks like OSF/1"
-               if test -n "$GCC"; then
-                   STATIC_FLAGS="-static"
-               else
-                   STATIC_FLAGS="-non_shared"
-               fi
+               STATIC_FLAGS="-Wl,-no_library_replacement"
                # C2 security stuff
                if test -n "$C2"; then
                    LIBS="${LIBS} -lsecurity -laud"