Skip to contentSkip to conversation

ts-libvirt-build: Enable debug symbols in binaries

PATCH In review Ian Campbell 2 participants 2 messages Jun 19, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ts-libvirt-build: Enable debug symbols in binaries

... by passing -g as appropriate.

Also ensure debug logging is enabled with --enable-debug (which doesn't imply -g during build!).

---
 ts-libvirt-build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
ts-libvirt-build +2 -2
index 38f2cfd..f764b53 100755
@@ -56,8 +56,8 @@ sub config() {
     my $gnulib = submodule_find($submodules, "gnulib");
     target_cmd_build($ho, 3600, $builddir, <<END);
         cd libvirt
-        CFLAGS="-I$xenprefix/include/" \\
-        LDFLAGS="-L$xenprefix/lib/ -Wl,-rpath-link=$xenprefix/lib/" \\
+        CFLAGS="-g -I$xenprefix/include/" \\
+        LDFLAGS="-g -L$xenprefix/lib/ -Wl,-rpath-link=$xenprefix/lib/" \\
         GNULIB_SRCDIR=$builddir/libvirt/$gnulib->{Path} \\
             ./autogen.sh --no-git \\
                          --with-libxl --without-xen --without-xenapi --without-selinux \\
Signature · 1 line
2.1.4
Acked-by on v1 1/1
#1 lore raw

Ian Campbell writes ("[PATCH OSSTEST] ts-libvirt-build: Enable debug symbols in binaries"):

Quoted 6 lines

... by passing -g as appropriate.

Also ensure debug logging is enabled with --enable-debug (which doesn't imply -g during build!).

And bundled into my misc queue.

Ian.