<div dir="ltr">Thanks =)<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 17, 2016 at 2:00 PM, <span dir="ltr"><<a href="mailto:pixman-request@lists.freedesktop.org" target="_blank">pixman-request@lists.freedesktop.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Pixman mailing list submissions to<br>
<a href="mailto:pixman@lists.freedesktop.org">pixman@lists.freedesktop.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.freedesktop.org/mailman/listinfo/pixman" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/pixman</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:pixman-request@lists.freedesktop.org">pixman-request@lists.freedesktop.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:pixman-owner@lists.freedesktop.org">pixman-owner@lists.freedesktop.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Pixman digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. [PATCH] pixman-private: include <float.h> only in C code<br>
(Thomas Petazzoni)<br>
2. [PATCH] configure: add options to disable demos and tests<br>
(Thomas Petazzoni)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sun, 17 Jan 2016 15:22:50 +0100<br>
From: Thomas Petazzoni <<a href="mailto:thomas.petazzoni@free-electrons.com">thomas.petazzoni@free-electrons.com</a>><br>
To: <a href="mailto:pixman@lists.freedesktop.org">pixman@lists.freedesktop.org</a><br>
Subject: [Pixman] [PATCH] pixman-private: include <float.h> only in C<br>
code<br>
Message-ID:<br>
<<a href="mailto:1453040570-28760-1-git-send-email-thomas.petazzoni@free-electrons.com">1453040570-28760-1-git-send-email-thomas.petazzoni@free-electrons.com</a>><br>
<br>
<br>
<float.h> is included unconditionally by pixman-private.h, which in<br>
turn gets included by assembler files. Unfortunately, with certain C<br>
libraries (like the musl C library), <float.h> cannot be included in<br>
assembler files:<br>
<br>
CCLD <a href="http://libpixman-arm-simd.la" rel="noreferrer" target="_blank">libpixman-arm-simd.la</a><br>
/home/test/buildroot/output/host/usr/arm-buildroot-linux-musleabihf/sysroot/usr/include/float.h: Assembler messages:<br>
/home/test/buildroot/output/host/usr/arm-buildroot-linux-musleabihf/sysroot/usr/include/float.h:8: Error: bad instruction `int __flt_rounds(void)'<br>
/home/test/buildroot/output/host/usr/arm-buildroot-linux-musleabihf/sysroot/usr/include/float.h: Assembler messages:<br>
/home/test/buildroot/output/host/usr/arm-buildroot-linux-musleabihf/sysroot/usr/include/float.h:8: Error: bad instruction `int __flt_rounds(void)'<br>
<br>
It turns out however that <float.h> is not needed by assembly files,<br>
so we move its inclusion within the #ifndef __ASSEMBLER__ condition,<br>
which solves the problem.<br>
<br>
Signed-off-by: Thomas Petazzoni <<a href="mailto:thomas.petazzoni@free-electrons.com">thomas.petazzoni@free-electrons.com</a>><br>
---<br>
pixman/pixman-private.h | 3 +--<br>
1 file changed, 1 insertion(+), 2 deletions(-)<br>
<br>
diff --git a/pixman/pixman-private.h b/pixman/pixman-private.h<br>
index 73108a0..73a5414 100644<br>
--- a/pixman/pixman-private.h<br>
+++ b/pixman/pixman-private.h<br>
@@ -1,5 +1,3 @@<br>
-#include <float.h><br>
-<br>
#ifndef PIXMAN_PRIVATE_H<br>
#define PIXMAN_PRIVATE_H<br>
<br>
@@ -30,6 +28,7 @@<br>
#include <stdio.h><br>
#include <string.h><br>
#include <stddef.h><br>
+#include <float.h><br>
<br>
#include "pixman-compiler.h"<br>
<br>
--<br>
2.6.4<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sun, 17 Jan 2016 15:31:47 +0100<br>
From: Thomas Petazzoni <<a href="mailto:thomas.petazzoni@free-electrons.com">thomas.petazzoni@free-electrons.com</a>><br>
To: <a href="mailto:pixman@lists.freedesktop.org">pixman@lists.freedesktop.org</a><br>
Subject: [Pixman] [PATCH] configure: add options to disable demos and<br>
tests<br>
Message-ID:<br>
<<a href="mailto:1453041107-4711-1-git-send-email-thomas.petazzoni@free-electrons.com">1453041107-4711-1-git-send-email-thomas.petazzoni@free-electrons.com</a>><br>
<br>
On certain architectures, the functionality of <fenv.h> may not be<br>
available, which prevents building the pixman tests. In order to still<br>
allow building pixman easily on such platforms, this commit adds two<br>
new configure options, --disable-testprogs and --disable-demos, which<br>
can be used to disable building the test and demo programs<br>
respectively.<br>
<br>
Of course, by default, tests and demo programs continue to be built,<br>
so that the existing behavior is preserved.<br>
<br>
Signed-off-by: Thomas Petazzoni <<a href="mailto:thomas.petazzoni@free-electrons.com">thomas.petazzoni@free-electrons.com</a>><br>
---<br>
Makefile.am | 10 +++++++++-<br>
<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> | 18 ++++++++++++++++++<br>
2 files changed, 27 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/Makefile.am b/Makefile.am<br>
index 5137c9e..cc29a75 100644<br>
--- a/Makefile.am<br>
+++ b/Makefile.am<br>
@@ -1,4 +1,12 @@<br>
-SUBDIRS = pixman demos test<br>
+SUBDIRS = pixman<br>
+<br>
+if DEMOS<br>
+SUBDIRS += demos<br>
+endif<br>
+<br>
+if TESTPROGS<br>
+SUBDIRS += test<br>
+endif<br>
<br>
pkgconfigdir=$(libdir)/pkgconfig<br>
pkgconfig_DATA=pixman-1.pc<br>
diff --git a/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> b/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
index 6b2134e..0e4d929 100644<br>
--- a/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
+++ b/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
@@ -807,6 +807,24 @@ fi<br>
AM_CONDITIONAL(USE_GCC_INLINE_ASM, test $have_gcc_inline_asm = yes)<br>
<br>
dnl ==============================================<br>
+dnl Demos<br>
+AC_ARG_ENABLE(demos,<br>
+ [AC_HELP_STRING([--disable-demos],<br>
+ [build demos [default=yes]])],<br>
+ [enable_demos=$enableval], [enable_demos=yes])<br>
+<br>
+AM_CONDITIONAL(DEMOS, test $enable_demos = yes)<br>
+<br>
+dnl ==============================================<br>
+dnl Test programs<br>
+AC_ARG_ENABLE(testprogs,<br>
+ [AC_HELP_STRING([--disable-testprogs],<br>
+ [build test programs [default=yes]])],<br>
+ [enable_testprogs=$enableval], [enable_testprogs=yes])<br>
+<br>
+AM_CONDITIONAL(TESTPROGS, test $enable_testprogs = yes)<br>
+<br>
+dnl ==============================================<br>
dnl Static test programs<br>
<br>
AC_ARG_ENABLE(static-testprogs,<br>
--<br>
2.6.4<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
Pixman mailing list<br>
<a href="mailto:Pixman@lists.freedesktop.org">Pixman@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/pixman" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/pixman</a><br>
<br>
<br>
------------------------------<br>
<br>
End of Pixman Digest, Vol 71, Issue 16<br>
**************************************<br>
</blockquote></div><br></div>