config/static-rules.mk
author Benjamin Smedberg <benjamin@smedbergs.us>
Tue, 30 Jun 2009 13:21:26 -0400
changeset 35739 f5675fec1a8d6998c5d753aad794b3e3e951a5f7
parent 22053 367be4e8418664ca249ef4100401a746f6f3e3d5
child 32877 96f28a6332cbaf149fc140b2f9926e7cc8b0d050
permissions -rw-r--r--
Build fixes: * enable RTTI by default when building with GCC to work around the tr1/functional error * link with -lrt * Tell chromium that it's always using wide wchar on Linux


ifdef _NO_AUTO_VARS
_TARGET = $(srcdir)/$(@F)
else
_TARGET = $@
endif

$(warning FINAL_LINK_COMP_NAMES = $(FINAL_LINK_COMP_NAMES))
$(warning FINAL_LINK_COMPS = $(FINAL_LINK_COMPS))

nsStaticComponents.cpp: $(topsrcdir)/config/nsStaticComponents.cpp.in $(GLOBAL_DEPS) $(FINAL_LINK_COMP_NAMES)
	rm -f $@
	cat $< | \
	sed -e "s|%MODULE_LIST%|$(foreach m, $(STATIC_COMPONENT_LIST),MODULE($(m)))|" \
	> $(_TARGET)

GARBAGE += nsStaticComponents.cpp

ifeq ($(OS_ARCH),IRIX)
LDFLAGS	+= -Wl,-LD_LAYOUT:lgot_buffer=80
endif

ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
LIBS	+= -framework QuickTime -framework IOKit -lcrypto
endif