summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-05-24 16:19:31 +0300
committerM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-06-18 15:39:16 +0100
commitcdd27a8d4cc3486867cff4ce81bb4e064eb74d58 (patch)
tree6f37933d4b12b08c164210851e8b7b8dd424d68a /build
parent46eb56a99f72b364e3eabe46f9b2995ed0696bd3 (diff)
[test] Never use gcc __attribute__ magic for constructors.
The configure test for __attribute__((constructor)) succeeds when compiling with Sun Studio 12 on OpenSolaris but the attribute is just ignored and has no actual effect. This causes the test suite to not run any tests at all. With this patch we revert to always using make-cairo-test-constructors.pl.
Diffstat (limited to 'build')
-rw-r--r--build/configure.ac.system10
1 files changed, 0 insertions, 10 deletions
diff --git a/build/configure.ac.system b/build/configure.ac.system
index 35fd28d5..01a6a0a8 100644
--- a/build/configure.ac.system
+++ b/build/configure.ac.system
@@ -135,15 +135,5 @@ dnl ===========================================================================
dnl
dnl Test for the tools required for building one big test binary
dnl
-AC_MSG_CHECKING([for the constructor attribute])
-cairo_has_constructor_attribute="no"
-AC_TRY_LINK([static void __attribute__((constructor)) constructor(void) {}], [],
- cairo_has_constructor_attribute="yes"
- )
-AC_MSG_RESULT([$cairo_has_constructor_attribute])
-if test "x$cairo_has_constructor_attribute" = "xyes"; then
- AC_DEFINE(CAIRO_HAS_CONSTRUCTOR_ATTRIBUTE, 1, [Define to 1 if your compiler supports __attribute__(constructor)])
-fi
-AM_CONDITIONAL(CAIRO_HAS_CONSTRUCTOR_ATTRIBUTE, test "x$cairo_has_constructor_attribute" = "xyes")
AC_CHECK_FUNCS(fork waitpid raise)