summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2022-02-09 14:43:41 +0800
committerluwenpeng <[email protected]>2022-03-07 10:47:09 +0800
commitaa252adf3bbc24c97c5bd7e3f5356fe3afb96648 (patch)
tree994fd4c33d17db1e61dd077695acc9a487a24dc4
parent421723f758325a237d557347b4eb63c0492c592b (diff)
TSG-9545 给ctemplate打patch, 使其可以在CentOS8下使用GCC7编译
-rw-r--r--vendor/CMakeLists.txt1
-rw-r--r--vendor/patch/compile_ctemplate_use_centos8_with_gcc7.patch10
2 files changed, 11 insertions, 0 deletions
diff --git a/vendor/CMakeLists.txt b/vendor/CMakeLists.txt
index 63d0278..db1a31a 100644
--- a/vendor/CMakeLists.txt
+++ b/vendor/CMakeLists.txt
@@ -216,6 +216,7 @@ set_property(TARGET cjson PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${INSTALL_DIR}/
ExternalProject_Add(ctemplate PREFIX ctemplate
URL ${CMAKE_CURRENT_SOURCE_DIR}/ctemplate-2.3.tar.gz
URL_MD5 3b91f3c1e7aa55cb4c2957acf77d6b9a
+ PATCH_COMMAND patch -p1 < ${CMAKE_CURRENT_LIST_DIR}/patch/compile_ctemplate_use_centos8_with_gcc7.patch
BUILD_COMMAND sh autogen.sh
CONFIGURE_COMMAND ./configure --prefix=<INSTALL_DIR>
BUILD_IN_SOURCE 1)
diff --git a/vendor/patch/compile_ctemplate_use_centos8_with_gcc7.patch b/vendor/patch/compile_ctemplate_use_centos8_with_gcc7.patch
new file mode 100644
index 0000000..9b5f5c1
--- /dev/null
+++ b/vendor/patch/compile_ctemplate_use_centos8_with_gcc7.patch
@@ -0,0 +1,10 @@
+diff --git a/src/htmlparser/generate_fsm.py b/src/htmlparser/generate_fsm.py
+index 9106b96..3f1e535 100755
+--- a/src/htmlparser/generate_fsm.py
++++ b/src/htmlparser/generate_fsm.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python2
+ #
+ # Copyright (c) 2008, Google Inc.
+ # All rights reserved. \ No newline at end of file