On Wed, Jul 18, 2018, 12:18 PM Rafael Zalamena <rzalamena@opensourcerouting.org> wrote:
Normally for quick tests I don't install binaries from source into my
system anymore, I just run them inside the source tree.

For example:
zebra/zebra -d &
bfdd/bfdd -d &

The only downside is that it makes it harder to run `gdb`, since the
file we are running is actually a shell script that sets the proper
environment (e.g. library location in the source folder).

You should be able to run gdb like this:
libtool --mode=execute gdb zebra/zebra
Details to be found at https://www.gnu.org/software/libtool/manual/html_node/Debugging-executables.html

All Best,
Chris