Bug 557413 - Fix race condition building static and shared libraries. r=ted

This commit is contained in:
Dan Witte 2010-04-08 16:03:06 -07:00
parent 338fcb61bb
commit 2a07aa0dc1
3 changed files with 6 additions and 6 deletions

View File

@ -1239,7 +1239,7 @@ endif
# symlinks back to the originals. The symlinks are a no-op for stabs debugging,
# so no need to conditionalize on OS version or debugging format.
$(SHARED_LIBRARY): $(OBJS) $(LOBJS) $(DEF_FILE) $(RESFILE) $(SHARED_LIBRARY_LIBS) $(EXTRA_DEPS) $(DSO_LDOPTS_DEPS) $(GLOBAL_DEPS)
$(SHARED_LIBRARY): $(OBJS) $(LOBJS) $(DEF_FILE) $(RESFILE) $(SHARED_LIBRARY_LIBS) $(LIBRARY) $(EXTRA_DEPS) $(DSO_LDOPTS_DEPS) $(GLOBAL_DEPS)
ifndef INCREMENTAL_LINKER
rm -f $@
endif

View File

@ -295,7 +295,7 @@ ctypes/libffi/.libs/libffi.$(LIB_SUFFIX): ctypes/libffi/.libs/libffi.a
emxomf $<
endif
SHARED_LIBRARY_LIBS = \
SHARED_LIBRARY_LIBS += \
ctypes/libffi/.libs/libffi.$(LIB_SUFFIX) \
$(NULL)
endif # JS_HAS_CTYPES
@ -371,12 +371,12 @@ include $(topsrcdir)/config/rules.mk
ifdef JS_HAS_CTYPES
# Build libffi proper as part of the 'exports' target, so things get built
# in the right order. Specify -j1 to make sure we don't get a parallel build.
# in the right order.
export::
$(MAKE) -j1 -C ctypes/libffi
$(call SUBMAKE,,ctypes/libffi)
clean::
$(MAKE) -j1 -C ctypes/libffi clean
$(call SUBMAKE,clean,ctypes/libffi)
endif
ifdef MOZ_SYNC_BUILD_FILES

View File

@ -1239,7 +1239,7 @@ endif
# symlinks back to the originals. The symlinks are a no-op for stabs debugging,
# so no need to conditionalize on OS version or debugging format.
$(SHARED_LIBRARY): $(OBJS) $(LOBJS) $(DEF_FILE) $(RESFILE) $(SHARED_LIBRARY_LIBS) $(EXTRA_DEPS) $(DSO_LDOPTS_DEPS) $(GLOBAL_DEPS)
$(SHARED_LIBRARY): $(OBJS) $(LOBJS) $(DEF_FILE) $(RESFILE) $(SHARED_LIBRARY_LIBS) $(LIBRARY) $(EXTRA_DEPS) $(DSO_LDOPTS_DEPS) $(GLOBAL_DEPS)
ifndef INCREMENTAL_LINKER
rm -f $@
endif