always enable debuginfo in the bundled LuaJIT 2.0 build and Lua 5.1 build to support Nginx Systemtap Toolkit.

This commit is contained in:
agentzh (Yichun Zhang)
2013-04-20 23:10:26 -07:00
parent 3a873d7874
commit 529f4c854c
3 changed files with 19 additions and 4 deletions

4
util/configure vendored
View File

@ -512,12 +512,12 @@ _END_
cd $luajit_src;
my $extra_opts = ' TARGET_STRIP=@:';
my $extra_opts = ' TARGET_STRIP=@: CCDEBUG=-g';
if ($opts->{debug}) {
$luajit_xcflags .= " -DLUA_USE_APICHECK -DLUA_USE_ASSERT";
$luajit_xcflags =~ s/^ +//;
$extra_opts .= qq{ CCDEBUG=-g Q= XCFLAGS='$luajit_xcflags'};
$extra_opts .= qq{ Q= XCFLAGS='$luajit_xcflags'};
} else {
if ($luajit_xcflags) {