Of course, if you actually want debug information built into the lib, you may want:
export CFLAGS="-g -O0" Sorry for all the noise. I am going to crawl back into my hole now. On Tue, Mar 17, 2015 at 3:01 PM, Brian Hamon <[email protected]> wrote: > OK I believe the correct answer to you question is to define CFLAGS in > your environment before building. Here's the steps I took: > > git pull origin master > export CFLAGS="-O1 -fomit-frame-pointer -DNDEBUG" > sh autogen.sh > ./configure > make > make check > sudo make install > > You will also want those same CFLAGS defined when you build your test > executable. > > > > > > On Tue, Mar 17, 2015 at 1:58 PM, Saheel Godhane <[email protected]> > wrote: > >> Hello everyone, >> >> I am a PhD student doing some Software Engineering research using >> LLVM/Clang. I want to compile libuv from source in debug mode so that I can >> track assertions (in my experience, some/all assertions are left out unless >> the project in compiled in debug mode). I have found references to "debug >> mode" in other posts but couldn't find any such option in the `configure` >> script. >> >> Can someone please help me out in this? >> >> Sincerely, >> Saheel Ram Godhane. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "libuv" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/libuv. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "libuv" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.
