[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] How do I disable debug mode?

From: LRN
Subject: Re: [libmicrohttpd] How do I disable debug mode?
Date: Sat, 31 Jan 2015 18:48:27 +0300
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.0a1

On 31.01.2015 17:43, Alexander Kurakin wrote:
> How can I disable debug mode and avoid -g flag during compilation of 
> libmmicrohttpd?

Usually - by invoking configure script with the CFLAGS you want, like:
./configure CFLAGS="-g -O2"
./configure CFLAGS="-g0 -O3"

Note that you can strip debug information from the binaries at any time using 
the objcopy program from binutils package.

Debug mode is not enabled by default, AFAIU, it's enabled when you pass 
MHD_USE_DEBUG to the library call MHD_start_daemon() or MHD_start_daemon_va().

O< ascii ribbon - stop html email! -

Attachment: 0x922360B0.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]