ENABLE_SYMBOLS=true does nothing

Kohei Yoshida kohei.yoshida at gmail.com
Tue Oct 30 13:07:23 PDT 2012

On 10/30/2012 03:42 PM, Lubos Lunak wrote:
> On Tuesday 30 of October 2012, Kohei Yoshida wrote:
>> Hi there,
>> Just noticed this today that, on master, the ENABLE_SYMBOLS=true doesn't
>> seem to turn on symbols.
>> Does this ring a bell to anyone?
>   http://lists.freedesktop.org/archives/libreoffice/2012-October/040051.html

Thanks.  Obviously I missed that that change would eliminate 
ENABLE_SYMBOLS option altogether.

Anyway, sounds like not many people use this option, and I happened to 
be one of the few that use it (?)  So, I wrote a wrapper to make to 
revive this use case.  Here is the script:

#!/usr/bin/env bash

if [ "$1" == "-g" ]; then
     echo "Enabling symbols..."
     shift 1
     make CXXFLAGS='$(call gb_LinkTarget__get_debugcxxflags,$(1)) -g' "$@"
     exit 0

make "$@"

I save it as lo-make and put it under ~/bin.  With this, running

lo-make -g -sr -j8

inside a module should just enable debug symbols, and nothing but symbols.

I hope others like me find that useful.



Kohei Yoshida, LibreOffice hacker, Calc

More information about the LibreOffice mailing list