From 2ed21cb951fc0dd020eb84ca5d50404bebd961f7 Mon Sep 17 00:00:00 2001 From: "ramiro%netscape.com" Date: Fri, 16 Apr 1999 02:39:00 +0000 Subject: [PATCH] Make sure NSPR always builds with make and not make -jX (X > 1). NSPR cant handle -jX builds because of the OBJDIR dependencies. --- build/unix/nspr_my_overrides.mk.in | 6 ++++++ configure.in | 16 ++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/build/unix/nspr_my_overrides.mk.in b/build/unix/nspr_my_overrides.mk.in index 906ee8265df8..cc9ac3132d06 100644 --- a/build/unix/nspr_my_overrides.mk.in +++ b/build/unix/nspr_my_overrides.mk.in @@ -1 +1,7 @@ DIST=@MOZ_NSPRENV_DIST@ +MOZ_NSPRENV_OVERRIDE_MAKE=@MOZ_NSPRENV_OVERRIDE_MAKE@ + +ifdef MOZ_NSPRENV_OVERRIDE_MAKE +MAKE=$(MOZ_NSPRENV_OVERRIDE_MAKE) +endif + diff --git a/configure.in b/configure.in index 0856aad02088..81d7dfb1cb6e 100644 --- a/configure.in +++ b/configure.in @@ -1832,6 +1832,21 @@ dnl Where the NSPR sutff gets installed: $DIST/{bin,lib,include} dnl MOZ_NSPRENV_DIST=`pwd`/dist +dnl +dnl MAKE +dnl +dnl NSPR is not safe for gnu make -jX (where X > 1) builds. Force make +dnl in NSPR to be 'make -j1' - or just 'make' +dnl +dnl Only set this if 'make' is found. + +_make_try=`make -v 2> /dev/null` + +if test "$_make_try" +then + MOZ_NSPRENV_OVERRIDE_MAKE=make +fi + AC_SUBST(MOZ_NSPRENV_USE_PTHREADS) AC_SUBST(MOZ_NSPRENV_BUILD_OPT) AC_SUBST(MOZ_NSPRENV_NS_USE_GCC) @@ -1839,6 +1854,7 @@ AC_SUBST(MOZ_NSPRENV_NO_MDUPDATE) AC_SUBST(MOZ_NSPRENV_NS_USE_NATIVE) AC_SUBST(MOZ_NSPRENV_MOZILLA_CLIENT) AC_SUBST(MOZ_NSPRENV_DIST) +AC_SUBST(MOZ_NSPRENV_OVERRIDE_MAKE) fi dnl ========================================================