Closed Bug 361076 Opened 18 years ago Closed 18 years ago

Clean up the USE_PTHREADS related code in coreconf/SunOS5.mk.

Categories

(NSS :: Build, defect)

3.11.3
Sun
Solaris
defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wtc, Assigned: wtc)

Details

Attachments

(1 file)

coreconf has some USE_PTHREADS related code that comes from the old days when NSPR had multiple implementations on Unix. Today NSPR has only one implementation on all major Unix platforms. Therefore the USE_PTHREADS code should be removed, or we should always set USE_PTHREADS=1. For the Solaris makefiles in coreconf, only SunOS5.mk uses USE_PTHREADS: $ grep USE_PTHREADS SunOS*.mk SunOS5.mk:ifeq ($(USE_PTHREADS),1)
USE_PTHREADS means the (current) NSPR implementation that uses pthreads. LOCAL_THREADS_ONLY means the (obsolete) NSPR implementation that uses NSPR's own user-level threads. IMPL_STRATEGY is a tag used in the OBJDIR name to tell the different implementations apart. Since there is only one NSPR implementation on Solaris, we don't need to use IMPL_STRATEGY.
Attachment #245857 - Flags: review?(chris.elving)
Wan-Teh, I don't have the editbugs permission here. However, the patch looks fine to me.
Comment on attachment 245857 [details] [diff] [review] Remove USE_PTHREADS, LOCAL_THREADS_ONLY, and IMPL_STRATEGY from SunOS*.mk Chris, I meant to ask Christophe to review the patch. Sorry about that.
Attachment #245857 - Flags: review?(chris.elving) → review?(christophe.ravel.bugs)
Attachment #245857 - Flags: review?(christophe.ravel.bugs) → review+
I checked in the patch on the NSS trunk (3.12).
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.12
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: