cairo/build
Bryce Harrington 7cfebce152 build: Fix float endian configure test when using clang -O4
When using clang -O4, the compiled test object is output in bitcode
format rather than as an ELF object, so when we grep the test value from
the object it fails.  To work around this, go ahead and link the test
object into an executable, and then grep against this native binary
instead of the compiler's intermediary object.

We need to add __attribute__((used)) to ensure the d variable doesn't
get optimized out during linking, since it's not referenced in the
test's main().

Patch authored by cmuelle8 <abendstund@gmail.com>

Reviewed-by: Bryce Harrington <b.harrington@samsung.com>
Bugzilla:  https://bugs.freedesktop.org/show_bug.cgi?id=63310
2014-09-23 12:40:25 -07:00
..
.gitignore .gitignore: Ignore two generated files in build/ 2014-07-08 17:47:23 -07:00
aclocal.cairo.m4 build: Silence autoconf warnings 2011-06-20 11:07:33 +02:00
aclocal.compare.m4 [configure] Replace awk comparator with an aclocal version 2009-01-02 15:44:52 +00:00
aclocal.enable.m4 Don't cache _CAIRO_ENABLE results 2011-03-18 13:13:18 -03:00
aclocal.float.m4 build: Fix float endian configure test when using clang -O4 2014-09-23 12:40:25 -07:00
aclocal.gtk-doc.m4 Move m4 macros into build/aclocal.*.m4 files 2008-09-11 04:17:43 -04:00
aclocal.makefile.m4 Generate build/Makefile.win32.features 2008-09-22 22:24:38 -04:00
aclocal.pkg.m4 configure: fix PKG_CHECK_MODULES tests displaying no no 2012-10-21 09:36:28 +01:00
configure.ac.analysis [build] Refine the -Wno-attribute test to check our use cases. 2009-09-02 06:35:14 +03:00
configure.ac.features backends: Adds a new Cogl based backend 2011-10-11 09:05:45 +01:00
configure.ac.noversion build: Fix regression provoked by newer autoconf and dodgy configuring. 2010-07-11 21:40:26 +03:00
configure.ac.pthread Revert accidentally committed stuff 2013-07-29 22:47:26 -04:00
configure.ac.system On OS/2, WIFSIGNALED and WTERMSIG are prototyped in sys/wait.h 2011-09-18 08:50:26 +01:00
configure.ac.tools [boilerplate/test] Convert make-*-constructors to shell 2009-08-06 10:11:32 +01:00
configure.ac.version [test] Build test suite into single binary. 2008-10-31 12:30:11 +00:00
configure.ac.warnings qt: Suppress warnings in qt backend build 2014-09-11 12:53:05 -07:00
Makefile.am.analysis [perf] Include trace comparison in html output 2009-07-20 22:20:01 +01:00
Makefile.am.changelog Fix pollution from skia commit 2011-08-13 10:06:08 +01:00
Makefile.am.common [Makefile.am.common] Remove gcc precompiled headers in "make clean" 2008-09-19 18:42:54 -04:00
Makefile.am.gtk-doc Add note re gtk-doc.make 2010-11-17 13:30:28 -05:00
Makefile.am.releasing configure.ac: generate xz tarballs by default 2012-04-14 15:04:06 +01:00
Makefile.win32.common made paths to pixman, libpng and zlib configurable by commandline for win32 builds 2014-09-11 13:00:13 -07:00
Makefile.win32.features backends: Adds a new Cogl based backend 2011-10-11 09:05:45 +01:00
Makefile.win32.features-h backends: Adds a new Cogl based backend 2011-10-11 09:05:45 +01:00
Makefile.win32.inform build: Add 'clean' target to Makefile.win32 build system 2012-02-16 23:00:46 +01:00