we do not specify TARGET_STRIP= when CCDEBUG is set to -g because it will make gmake crash. sigh.

This commit is contained in:
agentzh (章亦春)
2011-07-26 12:19:15 +08:00
parent 0bf8bbe040
commit 177e1bfcdf
2 changed files with 58 additions and 8 deletions

8
util/configure vendored
View File

@ -326,12 +326,12 @@ sub build_resty_opts {
my $extra_opts = ' TARGET_STRIP=';
if (defined $cc) {
$extra_opts .= " HOST_CC=$cc";
if ($opts->{debug}) {
$extra_opts = ' CCDEBUG=-g Q=';
}
if ($opts->{debug}) {
$extra_opts .= ' CCDEBUG=-g Q=';
if (defined $cc) {
$extra_opts .= " HOST_CC=$cc";
}
shell "make$extra_opts PREFIX=$luajit_prefix", $dry_run;