Fixing objdir bustage.

Added hack to remove .o from srcdir during export
This commit is contained in:
seawood%netscape.com 2002-03-22 01:44:26 +00:00
parent a165972d6f
commit ed2322fc69
2 changed files with 10 additions and 1 deletions

View File

@ -67,6 +67,10 @@ FORCE_USE_PIC = 1
include $(topsrcdir)/config/rules.mk
# hack to work around objdir bustage
export::
rm -f $(XPCOM_GLUE_SRC_CSRCS:.cpp=.$(OBJ_SUFFIX))
DEFINES += \
-D_IMPL_NS_COM \
-D_IMPL_NS_BASE

View File

@ -50,7 +50,7 @@ LOCAL_INCLUDES = \
$(NULL)
CPPSRCS = \
$(XPCOM_GLUE_SRC_CSRCS) \
$(XPCOM_GLUE_SRC_LCSRCS) \
$(NULL)
SDK_BINARY = \
@ -63,8 +63,13 @@ FORCE_STATIC_LIB = 1
# Force use of PIC
FORCE_USE_PIC = 1
GARBAGE += $(XPCOM_GLUE_SRC_LCSRCS) $(wildcard *.$(OBJ_SUFFIX))
include $(topsrcdir)/config/rules.mk
export:: $(XPCOM_GLUE_SRC_CSRCS)
$(INSTALL) $^ .
DEFINES += -D_IMPL_NS_COM_OFF
ifeq ($(OS_ARCH),WINNT)