X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=debian%2Frules;h=ceb692f4455b0e97e17321c28fb26a68cc31b8db;hb=637930a378b1e098fab00108f542f8eb1b865488;hp=a74a522feced4aae304ea33d42f4665b094ee233;hpb=67cc35489830ea20ab4774bd25d2aeb718ae50ab;p=drnoksnes diff --git a/debian/rules b/debian/rules index a74a522..ceb692f 100755 --- a/debian/rules +++ b/debian/rules @@ -35,19 +35,21 @@ M4DEFS=-DMAEMO_MAJOR=$(MAEMO_VERSION) ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else ifneq (,$(findstring armel,$(ARCH))) - CFLAGS += -O2 + CFLAGS += -O2 -ffast-math GUI_CFLAGS += -Os ifneq (,$(findstring vfp,$(DEB_BUILD_OPTIONS))) CFLAGS += -march=armv6j -mtune=arm1136jf-s -mfpu=vfp -mfloat-abi=softfp ASFLAGS += -march=armv6j -mfpu=vfp -mfloat-abi=softfp endif - # Fixes hang while exiting in Diablo. - CFLAGS += -static-libgcc + ifeq ($(shell expr "$(MAEMO_VERSION)" "<" 5), 1) + # Fixes hang while exiting in Diablo. + CFLAGS += -static-libgcc + endif else ifneq (,$(findstring i386,$(ARCH))) - CFLAGS += -O2 + CFLAGS += -O2 -ffast-math GUI_CFLAGS += -O2 else - # Don't support anything else yet + # Don't support anything else crash endif