Bugzilla bug #52398: define USE_PTHREADS=1 by default. Do not link with

-lc or -lc_r.  Also merged other changes from NSPR's FreeBSD.mk.
Thanks to Thomas Stromberg <tstromberg@rtci.com> for the bug report.
This commit is contained in:
wtc%netscape.com 2000-09-19 03:53:08 +00:00
Родитель b554f188f6
Коммит 41f888f734
1 изменённых файлов: 20 добавлений и 5 удалений

Просмотреть файл

@ -40,19 +40,34 @@ CC = gcc
CCC = g++
RANLIB = ranlib
ifeq ($(OS_TEST),alpha)
CPU_ARCH = alpha
else
OS_REL_CFLAGS = -Di386
CPU_ARCH = x86
endif
OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -pipe -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -pipe $(THREAD_FLAG) -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
ifdef USE_PTHREADS
OS_LIBS = -lc_r
else
OS_LIBS = -lc
#
# The default implementation strategy for FreeBSD is pthreads.
#
ifndef CLASSIC_NSPR
USE_PTHREADS = 1
DEFINES += -D_THREAD_SAFE
THREAD_FLAG = -pthread
endif
ARCH = freebsd
MOZ_OBJFORMAT := $(shell test -x /usr/bin/objformat && /usr/bin/objformat || echo aout)
ifeq ($(MOZ_OBJFORMAT),elf)
DLL_SUFFIX = so
else
DLL_SUFFIX = so.1.0
endif
DSO_CFLAGS = -fPIC
DSO_LDOPTS = -Bshareable
DSO_LDFLAGS =