patches/gtkhtml-02-build-no-strict.diff
author yippi
Mon, 27 Sep 2010 21:07:51 +0000
changeset 20108 51df67ca9307
parent 19972 a65dcdf8dca1
permissions -rw-r--r--
I had these modules listed as being owned by me, but they are really owned by wangke, correcting.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
19972
a65dcdf8dca1 2010-08-05 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     1
--- gtkhtml-3.31.5/configure.ac.orig	2010-08-05 16:48:02.854984542 +0800
a65dcdf8dca1 2010-08-05 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     2
+++ gtkhtml-3.31.5/configure.ac	2010-08-05 16:51:57.450526780 +0800
a65dcdf8dca1 2010-08-05 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     3
@@ -102,7 +102,6 @@
a65dcdf8dca1 2010-08-05 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     4
 dnl on GCC's previous "undefined" behavior, so disable strict-aliasing
a65dcdf8dca1 2010-08-05 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     5
 dnl optimization until we can find and fix all the abuses.
a65dcdf8dca1 2010-08-05 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     6
 dnl XXX This really belongs in AM_CFLAGS.
a65dcdf8dca1 2010-08-05 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     7
-CFLAGS="$CFLAGS $WARNING_FLAGS -fno-strict-aliasing"
a65dcdf8dca1 2010-08-05 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     8
 
a65dcdf8dca1 2010-08-05 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     9
 dnl *********************
a65dcdf8dca1 2010-08-05 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    10
 dnl Necessary programs
a65dcdf8dca1 2010-08-05 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    11
@@ -114,6 +113,12 @@
a65dcdf8dca1 2010-08-05 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    12
 AC_FUNC_MALLOC
a65dcdf8dca1 2010-08-05 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    13
 AC_TYPE_SIZE_T
a65dcdf8dca1 2010-08-05 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    14
 
a65dcdf8dca1 2010-08-05 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    15
+if test "x${GCC}" = "xyes"; then
a65dcdf8dca1 2010-08-05 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    16
+	CFLAGS="$CFLAGS $WARNING_FLAGS -fno-strict-aliasing"
a65dcdf8dca1 2010-08-05 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    17
+else
a65dcdf8dca1 2010-08-05 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    18
+	CFLAGS="$CFLAGS $WARNING_FLAGS"
a65dcdf8dca1 2010-08-05 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    19
+fi
a65dcdf8dca1 2010-08-05 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    20
+
a65dcdf8dca1 2010-08-05 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    21
 AC_CHECK_FUNCS([memchr memmove memset regcomp setlocale strchr strcspn strrchr strstr strtol strtoull])
a65dcdf8dca1 2010-08-05 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    22
 AC_CHECK_HEADERS([fcntl.h libintl.h])
a65dcdf8dca1 2010-08-05 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    23