]> granicus.if.org Git - sudo/commitdiff
cleaned up -static stuff
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 1 Sep 1994 17:22:02 +0000 (17:22 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 1 Sep 1994 17:22:02 +0000 (17:22 +0000)
configure.in

index 5fef2265d350aacb56414be4fe8771fc78cd526a..2f65fa67ac6f7c0931c550fc23fd6622479dab0d 100644 (file)
@@ -68,7 +68,9 @@ SUDO_OSTYPE()
 OS=`echo $OS | $TRPROG '[[A-Z]]' '[[a-z]]'`
 case "$OS" in
     "sunos")   echo "Looks like SunOS 4.x"
-               if test -z "$GCC"; then
+               if test -n "$GCC"; then
+                   STATIC_FLAGS="-static"
+               else
                    STATIC_FLAGS="-Bstatic"
                fi
                ;;
@@ -79,12 +81,16 @@ case "$OS" in
                AC_DEFINE(_ALL_SOURCE)
                ;;
     "hp-ux")   echo "Looks like HP-UX"
-               if test -z "$GCC"; then
+               if test -n "$GCC"; then
+                   STATIC_FLAGS="-static"
+               else
                    STATIC_FLAGS="-Wl,-a,archive"
                fi
                ;;
     "osf1")    echo "Looks like OSF/1"
-               if test -z "$GCC"; then
+               if test -n "$GCC"; then
+                   STATIC_FLAGS="-static"
+               else
                    STATIC_FLAGS="-non_shared"
                fi
                # C2 security stuff
@@ -112,6 +118,9 @@ case "$OS" in
                fi
                ;;
     "linux")   echo "Looks like linux"
+               if test -n "$GCC"; then
+                   STATIC_FLAGS="-static"
+               fi
                ;;
     "convex")  echo "Looks like ConvexOs"
                AC_DEFINE(_CONVEX_SOURCE)
@@ -145,12 +154,6 @@ case "$OS" in
                ;;
 esac
 dnl
-dnl We can't make a static binary on solaris and it causes probs on AIX
-dnl
-if test -n "$GCC" -a -n "$OS" -a "$OS" != "solaris" -a "$OS" != "aix" ; then
-    STATIC_FLAGS="-static"
-fi
-dnl
 dnl extra AFS libs
 dnl
 if test -n "$AFS" ; then