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

别来无恙 提交于 2019-12-23 01:47:07

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/3971642/how-can-i-compile-a-lazarus-apache-module-to-apache-1-3-2-0-and-2-2-selectively

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!