开发者

How can I compile a Lazarus Apache module to Apache 1.3, 2.0 and 2.2 selectively?

I've had a look at /etc/fpc.cfg and there is mention to some defines:

  • FPCAPACHE_1_3
  • FPCAPACHE_2_0

Then in the fcl-web examples there is mention to:

  • Apache1_3

The only one I've found is on the apr.pas on both these files:

  • /usr/share/开发者_如何转开发fpcsrc/2.4.0/packages/httpd20/src/apr/apr.pas
  • /usr/share/fpcsrc/2.4.0/packages/httpd22/src/apr/apr.pas

So how does the compiler decide what version of APR to compile?


If you enable the right one of those conditionals/directives afaik, the rest of the fpc.cfg should put the corresponding httpd dir first in the compilers search path, so that that version gets taken.

So you should only define one of them.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜