Turning off assert() ?

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

 



Norman Franke wrote:
> I need to turn off assert in my production code since there are  
> several instance of it falsely being triggered when using the  
> conference bridge.
> 
> Setting -NDEBUG apparently no longer works with the latest from  
> subversion.
> 
> The README.txt also gives a number of configure examples, some of  
> which fail, e.g.:
> 
> ./configure CFLAGS="-O2 -DNDEBUG"

It seems that ./configure does not accept specifying flags, but 
./aconfigure does. So until ./configure is fixed (I'm not sure how, 
currently it just calls "./aconfigure $*", which apparently doesn't 
work), you can do this instead:

   ./aconfigure CFLAGS="-O2 -DNDEBUG"

Alternatively, since we're just appending flags (rather than 
modifying or removing them), you can create user.mak file in your 
root PJ directory, containing this:

   # user.mak file:
   export CFLAGS += -DNDEBUG


cheers,
  -benny


> -Norman
> 
> 
> 
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
> 
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


-- 
Benny Prijono
http://www.pjsip.org




[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux