made lua-cjson honor the --with-debug option; updated the test suite to reflect recent changes.

This commit is contained in:
agentzh (章亦春)
2011-08-10 17:48:02 +08:00
parent 3aedf4d8e5
commit d283e90962
2 changed files with 158 additions and 4 deletions

13
util/configure vendored
View File

@ -553,7 +553,18 @@ _EOC_
"LUA_LIB_DIR=$lualib_prefix";
if ($on_solaris) {
$extra_opts .= " INSTALL=$root_dir/build/install CFLAGS=\"-g -O3 -Wall -pedantic -D'isinf(x)=0'\"";
$extra_opts .= " INSTALL=$root_dir/build/install";
if ($opts->{debug}) {
$extra_opts .= " CFLAGS=\"-g -O0 -Wall -pedantic -D'isinf(x)=0'\"";
} else {
$extra_opts .= " CFLAGS=\"-g -O3 -Wall -pedantic -D'isinf(x)=0'\"";
}
} else {
if ($opts->{debug}) {
$extra_opts .= " CFLAGS=\"-g -O0 -Wall -pedantic\"";
}
}
if ($platform eq 'macosx') {