Re: Custom compilation flag for an nginx module

2014-12-04 Thread erankor2
Thanks Maxim, that's very helpful, it works great Eran Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255292,255302#msg-255302 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Custom compilation flag for an nginx module

2014-12-03 Thread Maxim Dounin
Hello! On Wed, Dec 03, 2014 at 11:28:28AM -0500, erankor2 wrote: > Thank you Maxim, your suggestion will definitely work for me. > > Are you familiar with any simple "non-core" module that does it ? I will > need to test for the existence of this function or the need to explicitly > add librt, a

Re: Custom compilation flag for an nginx module

2014-12-03 Thread erankor2
Thank you Maxim, your suggestion will definitely work for me. Are you familiar with any simple "non-core" module that does it ? I will need to test for the existence of this function or the need to explicitly add librt, and update CORE_LIBS accordingly + define some preprocessor macro that I can l

Re: Custom compilation flag for an nginx module

2014-12-03 Thread Maxim Dounin
Hello! On Wed, Dec 03, 2014 at 10:47:01AM -0500, erankor2 wrote: > Hi all, > > Is it possible for an nginx module to define custom compilation switches > that add external libs / preprocessor macros ? Is there some example of a > module that does it ? No. > Specifically, what I'm trying to do

Custom compilation flag for an nginx module

2014-12-03 Thread erankor2
Hi all, Is it possible for an nginx module to define custom compilation switches that add external libs / preprocessor macros ? Is there some example of a module that does it ? Specifically, what I'm trying to do is measure time accurately in my module for benchmarking purposes. Since I use Linux,