]> git.pld-linux.org Git - packages/hhvm.git/blob - disable-fastcgi.patch
f00e9b567a1bc30fd4d6877ea631d3adb2b6d736
[packages/hhvm.git] / disable-fastcgi.patch
1 it's not possible to to build with -DENABLE_FASTCGI=1
2
3 this commit adds it unconditionally ON for Linux:
4 https://github.com/facebook/hhvm/commit/773a4cd620820d8424756f6f8def466d179e5f8e
5
6 --- hhvm-HHVM-3.9.1/CMake/HPHPSetup.cmake~      2015-10-05 10:35:55.000000000 +0300
7 +++ hhvm-HHVM-3.9.1/CMake/HPHPSetup.cmake       2015-10-05 10:37:21.859232742 +0300
8 @@ -19,7 +19,9 @@
9  endif()
10  
11  if (APPLE)
12 -  set(ENABLE_FASTCGI 1)
13 +  if(NOT DEFINED ENABLE_FASTCGI)
14 +    set(ENABLE_FASTCGI 1)
15 +  endif()
16    set(HHVM_ANCHOR_SYMS
17      -Wl,-u,_register_fastcgi_server
18      -Wl,-segaddr,__text,0
19 @@ -49,14 +49,20 @@
20    set(HHVM_ANCHOR_SYMS
21      -Wl,--whole-archive ${HHVM_WHOLE_ARCHIVE_LIBRARIES} -Wl,--no-whole-archive)
22  elseif(CYGWIN)
23 -  set(ENABLE_FASTCGI 0)
24 +  if(NOT DEFINED ENABLE_FASTCGI)
25 +    set(ENABLE_FASTCGI 0)
26 +  endif()
27    set(HHVM_ANCHOR_SYMS
28    -Wl,--whole-archive ${HHVM_WHOLE_ARCHIVE_LIBRARIES} -Wl,--no-whole-archive)
29  elseif (MSVC)
30 -  set(ENABLE_FASTCGI 0)
31 +  if(NOT DEFINED ENABLE_FASTCGI)
32 +    set(ENABLE_FASTCGI 0)
33 +  endif()
34    set(HHVM_ANCHOR_SYMS ${HHVM_WHOLE_ARCHIVE_LIBRARIES})
35  else()
36 -  set(ENABLE_FASTCGI 1)
37 +  if(NOT DEFINED ENABLE_FASTCGI)
38 +    set(ENABLE_FASTCGI 1)
39 +  endif()
40    set(HHVM_ANCHOR_SYMS
41      -Wl,-uregister_libevent_server,-uregister_fastcgi_server
42      -Wl,--whole-archive ${HHVM_WHOLE_ARCHIVE_LIBRARIES} -Wl,--no-whole-archive)
This page took 0.017724 seconds and 2 git commands to generate.