[dpdk-dev] [PATCH] mk: add debug target
Thomas Monjalon
thomas at monjalon.net
Wed Jan 31 00:40:28 CET 2018
16/12/2017 01:13, Ferruh Yigit:
> Add "debug" target to build library with debug symbols and optimization
> disabled.
>
> This is shortcut for exiting method to compile with
> EXTRA_CFLAGS="-O0 -g3"
>
> Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>
> ---
> + debug build library with debug symbols
[...]
> +.PHONY: debug
> +debug:
> + $(Q)$(MAKE) EXTRA_CFLAGS="-O0 -g3"
This target will override any EXTRA_CFLAGS,
so we cannot build in debug mode with more extra cflags this way.
I think the cons are higher than the pros.
More information about the dev
mailing list