Bug 719718 - hostxpt is unnecessary even if cross. r=khuey

This commit is contained in:
Makoto Kato 2012-01-31 10:24:08 +09:00
parent 3db38488a0
commit c00fefe24b

View File

@ -47,12 +47,7 @@ LIBRARY_NAME = xpt
LIB_IS_C_ONLY = 1
DIST_INSTALL = 1
ifdef CROSS_COMPILE
HOST_LIBRARY_NAME = hostxpt
endif
CSRCS = xpt_arena.c xpt_struct.c xpt_xdr.c
HOST_CSRCS = $(CSRCS)
# we don't want the shared lib, but we want to force the creation of a static lib.
FORCE_STATIC_LIB = 1
@ -65,19 +60,12 @@ NO_PROFILE_GUIDED_OPTIMIZE = 1
include $(topsrcdir)/config/rules.mk
DEFINES += -DEXPORT_XPT_API
HOST_CFLAGS += -DEXPORT_XPT_API
# Build libxpt early so that it'll be available to xpidl, which also
# must be built early.
export::
@$(MAKE) libs
ifdef CROSS_COMPILE
ifdef HOST_NSPR_MDCPUCFG
HOST_CFLAGS += -DMDCPUCFG=$(HOST_NSPR_MDCPUCFG)
endif
endif
# XXX, bug 417045, make -jN combines badly with -save-temps in
# CFLAGS/CXXFLAGS (for stabs symbols with XCode3)
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))