summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo J. A. M. Carneiro <gjc@src.gnome.org>2007-08-27 12:02:12 +0000
committerGustavo J. A. M. Carneiro <gjc@src.gnome.org>2007-08-27 12:02:12 +0000
commit753ed7640594bf88fd7a1f693fde9e08d581631b (patch)
tree0fd4981ee6fe4fc7df3ab594f87266a545e656f4
parent30706b9430eac494a9567427c68b4e5a2ef3ec5e (diff)
downloadpygobject-753ed7640594bf88fd7a1f693fde9e08d581631b.tar.gz
pygobject-753ed7640594bf88fd7a1f693fde9e08d581631b.tar.xz
pygobject-753ed7640594bf88fd7a1f693fde9e08d581631b.zip
Bug 339924 – pygobject doesn't compile on opensolaris
svn path=/trunk/; revision=696
-rw-r--r--ChangeLog3
-rw-r--r--configure.ac10
2 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a188983..90989a0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2007-08-27 Gustavo J. A. M. Carneiro <gjc@gnome.org>
+ * configure.ac: Don't add -std=c9x CFLAG on Solaris. Fixes
+ #339924 again.
+
* gobject/pygtype.c (pyg_type_wrapper_repr): Typecast self->type
to (unsigned long int) to fix a compilation warning.
diff --git a/configure.ac b/configure.ac
index cee4a21..60224ac 100644
--- a/configure.ac
+++ b/configure.ac
@@ -141,8 +141,16 @@ AC_SUBST(FFI_LIBS)
dnl add required cflags ...
if test "x$GCC" = "xyes"; then
JH_ADD_CFLAG([-Wall])
- JH_ADD_CFLAG([-std=c9x])
JH_ADD_CFLAG([-fno-strict-aliasing])
+
+ case $host_os in
+ solaris*)
+ ;;
+ *)
+ JH_ADD_CFLAG([-std=c9x])
+ ;;
+ esac
+
fi
AC_CONFIG_FILES(