mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
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:
4
util/configure
vendored
4
util/configure
vendored
@ -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) {
|
||||
|
@ -324,14 +324,18 @@ tar -xzf lua-$ver.tar.gz || exit 1
|
||||
|
||||
#rm "patch-lua-$ver-4" || exit 1
|
||||
|
||||
echo "$info_txt applying the makefile_install_fix patch for lua 5.1"
|
||||
echo "$info_txt applying the makefile_install_fix patch for lua $ver"
|
||||
patch -p0 < $root/patches/lua-$ver-makefile_install_fix.patch || exit 1
|
||||
echo
|
||||
|
||||
echo "$info_txt applying the disable_lua50_compat patch for lua 5.1"
|
||||
echo "$info_txt applying the disable_lua50_compat patch for lua $ver"
|
||||
patch -p0 < $root/patches/lua-$ver-disable_lua50_compat.patch || exit 1
|
||||
echo
|
||||
|
||||
echo "$info_txt applying the enable_debug_info patch for lua $ver"
|
||||
patch -p0 < $root/patches/lua-$ver-enable_debug_info.patch || exit 1
|
||||
echo
|
||||
|
||||
#################################
|
||||
|
||||
ver=2.0.1
|
||||
|
Reference in New Issue
Block a user