aboutsummaryrefslogtreecommitdiffstats
path: root/thirdparty
diff options
context:
space:
mode:
authorjulis john <zhanglixin4@huawei.com>2018-07-26 17:37:23 +0800
committerjulis john <zhanglixin4@huawei.com>2018-08-01 11:49:05 +0800
commit25cf825bdc565131e1bafc202c2d67e588b84088 (patch)
tree5c7edc83b38a7e555043b73648953c340e452fa7 /thirdparty
parent97bf4e9ca99f1343288cbe0e2fafdaee1cb6fc8b (diff)
Fix: build nginx with epoll
Change-Id: I980ee29462e5d62dffc9aa007bcb55799fe89fd3 Signed-off-by: julis john <zhanglixin4@huawei.com> Yalei Wang <william.wangyalei@huawei.com>
Diffstat (limited to 'thirdparty')
-rw-r--r--thirdparty/apps/CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/thirdparty/apps/CMakeLists.txt b/thirdparty/apps/CMakeLists.txt
index de58120..5a0daff 100644
--- a/thirdparty/apps/CMakeLists.txt
+++ b/thirdparty/apps/CMakeLists.txt
@@ -10,7 +10,7 @@ else()
SET(NGINX_DOWNLOAD_CMD wget --no-check-certificate -O nginx-1.12.2.tar.gz ${NGINX_URL} && tar -xvf ${NGINX_DOWNLOAD_DIR}/nginx-1.12.2.tar.gz -C ${NGINX_DOWNLOAD_DIR}/nginx-1.12.2 --strip-components 1)
endif()
-INCLUDE(ExternalProject)
+INCLUDE(ExternalProject)
ExternalProject_Add(
NGINX
URL ${NGINX_URL}
@@ -19,8 +19,9 @@ ExternalProject_Add(
BUILD_IN_SOURCE 1
SOURCE_DIR ${NGINX_SRC}
PATCH_COMMAND echo "./configure --with-ld-opt=\"-L${LIB_PATH_SHARED}/ -lnStackAPI -Wl,-rpath=${LIB_PATH_SHARED}\" --sbin-path=${NGINX_RELEASE}/nginx --conf-path=${NGINX_RELEASE}/nginx.conf --pid-path=${NGINX_RELEASE}/nginx.pid " > configure.sh
+ COMMAND sed -i -e "48,49 s/^/#/" ${CMAKE_CURRENT_LIST_DIR}/nginx/nginx-1.12.2/auto/os/linux
CONFIGURE_COMMAND sh configure.sh
- BUILD_COMMAND make
+ BUILD_COMMAND make
INSTALL_COMMAND make install
DEPENDS nStackAPI
)