[maemo-commits] [maemo-commits] r12587 - projects/haf/trunk/libcairo/debian

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Jul 2 11:07:55 EEST 2007
Author: xan
Date: 2007-07-02 11:07:42 +0300 (Mon, 02 Jul 2007)
New Revision: 12587

Modified:
   projects/haf/trunk/libcairo/debian/changelog
   projects/haf/trunk/libcairo/debian/rules
Log:
libcairo (1.4.6-0osso2) unstable; urgency=low

  * Use hardware floating point when available. 

 -- Xan Lopez <xan.lopez at nokia.com>  Mon,  2 Jul 2007 10:57:35 +0300


Modified: projects/haf/trunk/libcairo/debian/changelog
===================================================================
--- projects/haf/trunk/libcairo/debian/changelog	2007-07-02 07:34:17 UTC (rev 12586)
+++ projects/haf/trunk/libcairo/debian/changelog	2007-07-02 08:07:42 UTC (rev 12587)
@@ -1,3 +1,9 @@
+libcairo (1.4.6-0osso2) unstable; urgency=low
+
+  * Use hardware floating point when available. 
+
+ -- Xan Lopez <xan.lopez at nokia.com>  Mon,  2 Jul 2007 10:57:35 +0300
+
 libcairo (1.4.6-0osso1) unstable; urgency=low
 
   * New upstream release. 

Modified: projects/haf/trunk/libcairo/debian/rules
===================================================================
--- projects/haf/trunk/libcairo/debian/rules	2007-07-02 07:34:17 UTC (rev 12586)
+++ projects/haf/trunk/libcairo/debian/rules	2007-07-02 08:07:42 UTC (rev 12587)
@@ -40,6 +40,19 @@
 else
 	CFLAGS += -O2
 endif
+
+# Prefer hardware floating point if enabled
+ifneq (,$(findstring vfp,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -mfpu=vfp -mfloat-abi=softfp
+else
+# Use soft-float and thumb mode if it enabled.
+ifneq (,$(findstring thumb,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -mthumb
+endif
+endif
+
+export CFLAGS
+
 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 	INSTALL_PROGRAM += -s
 endif


More information about the maemo-commits mailing list