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:
parent
3a873d7874
commit
529f4c854c
|
@ -0,0 +1,11 @@
|
||||||
|
--- lua-5.1.5/src/Makefile 2012-02-13 12:41:22.000000000 -0800
|
||||||
|
+++ lua-5.1.5-patched/src/Makefile 2013-04-20 22:56:42.921286886 -0700
|
||||||
|
@@ -8,7 +8,7 @@
|
||||||
|
PLAT= none
|
||||||
|
|
||||||
|
CC= gcc
|
||||||
|
-CFLAGS= -O2 -Wall $(MYCFLAGS)
|
||||||
|
+CFLAGS= -g -O2 -Wall $(MYCFLAGS)
|
||||||
|
AR= ar rcu
|
||||||
|
RANLIB= ranlib
|
||||||
|
RM= rm -f
|
|
@ -512,12 +512,12 @@ _END_
|
||||||
|
|
||||||
cd $luajit_src;
|
cd $luajit_src;
|
||||||
|
|
||||||
my $extra_opts = ' TARGET_STRIP=@:';
|
my $extra_opts = ' TARGET_STRIP=@: CCDEBUG=-g';
|
||||||
|
|
||||||
if ($opts->{debug}) {
|
if ($opts->{debug}) {
|
||||||
$luajit_xcflags .= " -DLUA_USE_APICHECK -DLUA_USE_ASSERT";
|
$luajit_xcflags .= " -DLUA_USE_APICHECK -DLUA_USE_ASSERT";
|
||||||
$luajit_xcflags =~ s/^ +//;
|
$luajit_xcflags =~ s/^ +//;
|
||||||
$extra_opts .= qq{ CCDEBUG=-g Q= XCFLAGS='$luajit_xcflags'};
|
$extra_opts .= qq{ Q= XCFLAGS='$luajit_xcflags'};
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if ($luajit_xcflags) {
|
if ($luajit_xcflags) {
|
||||||
|
|
|
@ -324,14 +324,18 @@ tar -xzf lua-$ver.tar.gz || exit 1
|
||||||
|
|
||||||
#rm "patch-lua-$ver-4" || 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
|
patch -p0 < $root/patches/lua-$ver-makefile_install_fix.patch || exit 1
|
||||||
echo
|
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
|
patch -p0 < $root/patches/lua-$ver-disable_lua50_compat.patch || exit 1
|
||||||
echo
|
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
|
ver=2.0.1
|
||||||
|
|
Loading…
Reference in New Issue