[PATCH] Fix build without debug
Roman Bogorodskiy
bogorodskiy at gmail.com
Tue Sep 9 03:15:54 PDT 2014
Roman Bogorodskiy wrote:
> When building without debug build fails with:
>
> CCLD p11-kit/p11-kit
> ./.libs/libp11-kit.so: undefined reference to `P11_RPC_CHECK_CALLS'
> cc: error: linker command failed with exit code 1 (use -v to see
> invocation)
> gmake[2]: *** [p11-kit/p11-kit] Error 1
>
> This happens because P11_RPC_CHECK_CALLS is not defined when
> debugging is enabled, so provide a noop macro for that case.
Ping?
---
> p11-kit/rpc-message.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/p11-kit/rpc-message.h b/p11-kit/rpc-message.h
> index f85265b..fc4d06e 100644
> --- a/p11-kit/rpc-message.h
> +++ b/p11-kit/rpc-message.h
> @@ -207,6 +207,8 @@ static const p11_rpc_call p11_rpc_calls[] = {
> #ifdef _DEBUG
> #define P11_RPC_CHECK_CALLS() \
> { int i; for (i = 0; i < P11_RPC_CALL_MAX; ++i) assert (p11_rpc_calls[i].call_id == i); }
> +#else
> +#define P11_RPC_CHECK_CALLS()
> #endif
>
> #define P11_RPC_HANDSHAKE \
> --
> 2.0.2
>
Roman Bogorodskiy
More information about the p11-glue
mailing list