From: Steven Luo Date: Sat, 19 Dec 2009 06:14:54 +0000 (-0800) Subject: Optimize for N8x0 on armel builds, and use Thumb if requested X-Git-Tag: diablo-package-3.0-1~6 X-Git-Url: http://git.maemo.org/git/?p=browser-switch;a=commitdiff_plain;h=2497219f7ea5a38f1a3094f03f34c41a38e74226 Optimize for N8x0 on armel builds, and use Thumb if requested --- diff --git a/debian/rules b/debian/rules index 962a2e3..70bd2b9 100755 --- a/debian/rules +++ b/debian/rules @@ -9,8 +9,14 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 - - +# Optimize for N8x0 CPUs if building for armel +ifeq ($(DEB_HOST_ARCH),armel) + EXTRA_CFLAGS += -march=arm1136jf-s + # Use Thumb for smaller binaries if requested + ifneq (,$(filter thumb,$(DEB_BUILD_OPTIONS))) + EXTRA_CFLAGS += -mthumb + endif +endif configure: configure-stamp configure-stamp: