Bugzilla bug #86785: link with -lpthread -lthread on all versions of

Solaris to ensure the correct library linking order.
This commit is contained in:
wtc%netscape.com 2001-06-24 05:02:15 +00:00
parent 532afb4a32
commit 23b20e57b1

View File

@ -324,20 +324,11 @@ ifeq ($(OS_ARCH), SunOS)
endif
ifneq ($(LOCAL_THREADS_ONLY),1)
# SunOS 5.4 and 5.5 need to link with -lthread or -lpthread,
# even though we already linked with these system libraries
# when we built libnspr.so.
ifeq ($(OS_RELEASE), 5.4)
ifdef USE_PTHREADS
EXTRA_LIBS = -lpthread -lthread
else
EXTRA_LIBS = -lthread
endif
ifeq ($(OS_RELEASE), 5.5)
ifdef USE_PTHREADS
EXTRA_LIBS = -lpthread
else
EXTRA_LIBS = -lthread
endif
endif
endif # LOCAL_THREADS_ONLY
endif # SunOS