Index: trunk/extensions/wikidiff2/config.m4 |
— | — | @@ -36,5 +36,8 @@ |
37 | 37 | |
38 | 38 | PHP_SUBST(WIKIDIFF2_SHARED_LIBADD) |
39 | 39 | AC_DEFINE(HAVE_WIKIDIFF2, 1, [ ]) |
| 40 | + export CXXFLAGS_SAVE=$CXXFLAGS |
| 41 | + export CXXFLAGS="-Wno-write-strings $CXXFLAGS" |
40 | 42 | PHP_NEW_EXTENSION(wikidiff2, php_wikidiff2.cpp wikidiff2.cpp, $ext_shared) |
| 43 | + export CXXFLAGS="$CXXFLAGS" |
41 | 44 | fi |
Index: trunk/extensions/wikidiff2/README |
— | — | @@ -16,12 +16,15 @@ |
17 | 17 | Wikidiff2 is a PHP extension. To compile and install it: |
18 | 18 | |
19 | 19 | $ phpize |
20 | | -$ CXXFLAGS=-Wno-write-strings ./configure |
| 20 | +$ ./configure |
21 | 21 | $ make |
22 | 22 | $ sudo make install |
23 | 23 | |
24 | 24 | == Changelog == |
25 | 25 | |
| 26 | +2010-09-30 |
| 27 | +* Automaticly use CXXFLAGS=-Wno-write-strings |
| 28 | + |
26 | 29 | 2010-06-14 |
27 | 30 | * Converted the extension from swig to PHP native. |
28 | 31 | * Added Thai word break support |