KYRA: workaround to get maemo to even compile

kyra has a file that won't compile in -Os
This commit is contained in:
Tarek Soliman 2011-06-30 02:13:24 -05:00
parent b044ae6b98
commit 4cd9c16867

View File

@ -96,3 +96,10 @@ endif
# Include common rules
include $(srcdir)/rules.mk
ifeq ($(BACKEND), maemo)
#ugly workaround, screen.cpp crashes gcc version 3.4.4 (CodeSourcery ARM 2005q3-2) with anything but -O3
$(MODULE)/screen.o: $(MODULE)/screen.cpp
$(MKDIR) $(*D)/$(DEPDIR)
$(CXX) -Wp,-MMD,"$(*D)/$(DEPDIR)/$(*F).d",-MQ,"$@",-MP $(CXXFLAGS) -O3 $(CPPFLAGS) -c $(<) -o $*.o
endif