зеркало из https://github.com/mozilla/pjs.git
Pthreads is on by default now for configure. Make client.mk do the same.
This commit is contained in:
Родитель
89b0093c37
Коммит
fd3432b0fa
|
@ -37,9 +37,10 @@ ac_add_options() {
|
||||||
# and substitute '@<word>@' with '$(<word)'.
|
# and substitute '@<word>@' with '$(<word)'.
|
||||||
_opt=`echo $_opt | sed -e 's/\([\ \ \$\"\\]\)/\\\\\1/g; s/@\([^@]*\)@/\$(\1)/g;'`
|
_opt=`echo $_opt | sed -e 's/\([\ \ \$\"\\]\)/\\\\\1/g; s/@\([^@]*\)@/\$(\1)/g;'`
|
||||||
case "$_opt" in
|
case "$_opt" in
|
||||||
--with-nspr=* ) echo MOZ_WITH_NSPR=`expr $_opt : ".*=\(.*\)"` ;;
|
--with-nspr=* ) echo MOZ_WITH_NSPR=`expr $_opt : ".*=\(.*\)"` ;;
|
||||||
--with-pthreads* ) echo MOZ_WITH_PTHREADS=1 ;;
|
--with-pthreads=no ) echo MOZ_WITHOUT_PTHREADS=1 ;;
|
||||||
--*-* ) echo "# $_opt is not used by client.mk" ;;
|
--without-pthreads ) echo MOZ_WITHOUT_PTHREADS=1 ;;
|
||||||
|
--*-* ) echo "# $_opt is not used by client.mk" ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
20
client.mk
20
client.mk
|
@ -46,14 +46,14 @@
|
||||||
# See http://www.mozilla.org/build/unix.html for more information.
|
# See http://www.mozilla.org/build/unix.html for more information.
|
||||||
#
|
#
|
||||||
# Options:
|
# Options:
|
||||||
# MOZ_WITH_NSPR - Nspr directory for configure --with-nspr=
|
# MOZ_WITH_NSPR - Nspr directory for configure --with-nspr=
|
||||||
# MOZ_WITH_PTHREADS - Pthreads for nspr and configure
|
# MOZ_WITHOUT_PTHREADS - Turn off pthreads for nspr and configure
|
||||||
# MOZ_OBJDIR - Destination object directory
|
# MOZ_OBJDIR - Destination object directory
|
||||||
# also,
|
# also,
|
||||||
# MOZ_CO_BRANCH - Branch tag to use for checkout (default: HEAD)
|
# MOZ_CO_BRANCH - Branch tag to use for checkout (default: HEAD)
|
||||||
# MOZ_CO_MODULE - Module to checkout (default: SeaMonkeyEditor)
|
# MOZ_CO_MODULE - Module to checkout (default: SeaMonkeyEditor)
|
||||||
# MOZ_CVS_FLAGS - Flags to pass cvs (default: -q -z3)
|
# MOZ_CVS_FLAGS - Flags to pass cvs (default: -q -z3)
|
||||||
# MOZ_CO_FLAGS - Flags to pass after 'cvs co' (default: -P)
|
# MOZ_CO_FLAGS - Flags to pass after 'cvs co' (default: -P)
|
||||||
|
|
||||||
CWD := $(shell pwd)
|
CWD := $(shell pwd)
|
||||||
ifeq (mozilla, $(notdir $(CWD)))
|
ifeq (mozilla, $(notdir $(CWD)))
|
||||||
|
@ -149,7 +149,7 @@ CVSCO_LOGFILE := $(ROOTDIR)/cvsco.log
|
||||||
####################################
|
####################################
|
||||||
# NSPR
|
# NSPR
|
||||||
|
|
||||||
ifeq ($(MOZ_WITH_PTHREADS), 1)
|
ifneq ($(MOZ_WITHOUT_PTHREADS), 1)
|
||||||
NSPR_PTHREAD_FLAG := USE_PTHREADS=1
|
NSPR_PTHREAD_FLAG := USE_PTHREADS=1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -195,8 +195,8 @@ ifdef NEED_WITH_NSPR
|
||||||
CONFIG_FLAGS += --with-nspr=$(NSPR_INSTALL_DIR)
|
CONFIG_FLAGS += --with-nspr=$(NSPR_INSTALL_DIR)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq "$(origin MOZ_WITH_PTHREADS)" "environment"
|
ifeq "$(origin MOZ_WITHOUT_PTHREADS)" "environment"
|
||||||
CONFIG_FLAGS += --with-pthreads
|
CONFIG_FLAGS += --without-pthreads
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
|
|
Загрузка…
Ссылка в новой задаче