Set OS_LIBS for solaris so that `nspr-config --libs` contains the libs needed to resolved link-time dependencies. STATIC_BUILD_20010523_BRANCH
authorcls%seawood.org
Sun, 03 Jun 2001 14:03:47 +0000
branchSTATIC_BUILD_20010523_BRANCH
changeset 1910 f79a5be7377374fd0abf7b53186eda24d7eb21c9
parent 1900 36a7addce1c82e87e8998b3c3eb1e93058f73039
child 1911 f3a94144eeeb42e9b538805e0f553569e33a01ff
push idunknown
push userunknown
push dateunknown
Set OS_LIBS for solaris so that `nspr-config --libs` contains the libs needed to resolved link-time dependencies.
configure
configure.in
--- a/configure
+++ b/configure
@@ -4929,16 +4929,23 @@ EOF
             PR_MD_ASFILES=os_SunOS_x86.s
         else
             PR_MD_ASFILES=os_SunOS.s
             if test -z "$USE_64"; then
                 PR_MD_ASFILES="$PR_MD_ASFILES os_SunOS_32.s"
             fi
         fi
     fi
+    if test -n "$USE_PTHREADS"; then
+        OS_LIBS="$OS_LIBS -lpthread -lthread -lposix4 -lsocket -lnsl -ldl"
+    elif test -n "$USE_USER_PTHREADS"; then
+        OS_LIBS="$OS_LIBS -lsocket -lnsl -ldl"
+    else
+        OS_LIBS="$OS_LIBS -lthread -lposix4 -lsocket -lnsl -ldl"
+    fi
     ;;
 esac
 
 OS_LIBS="$_PTHREAD_LDFLAGS $OS_LIBS"
 
 if test -n "$_SAVE_OPTIMIZE_FLAGS"; then
     _OPTIMIZE_FLAGS="$_SAVE_OPTIMIZE_FLAGS"
 fi
--- a/configure.in
+++ b/configure.in
@@ -1889,16 +1889,23 @@ case "$target" in
             PR_MD_ASFILES=os_SunOS_x86.s
         else
             PR_MD_ASFILES=os_SunOS.s
             if test -z "$USE_64"; then
                 PR_MD_ASFILES="$PR_MD_ASFILES os_SunOS_32.s"
             fi
         fi
     fi
+    if test -n "$USE_PTHREADS"; then
+        OS_LIBS="$OS_LIBS -lpthread -lthread -lposix4 -lsocket -lnsl -ldl"
+    elif test -n "$USE_USER_PTHREADS"; then
+        OS_LIBS="$OS_LIBS -lsocket -lnsl -ldl"
+    else
+        OS_LIBS="$OS_LIBS -lthread -lposix4 -lsocket -lnsl -ldl"
+    fi
     ;;
 esac
 
 OS_LIBS="$_PTHREAD_LDFLAGS $OS_LIBS"
 
 dnl If the user passed in arg to --enable-optimize,
 dnl make sure that we use it.
 if test -n "$_SAVE_OPTIMIZE_FLAGS"; then