TSG-9689: 适配Rocky Linux8.5系统
This commit is contained in:
@@ -4,6 +4,7 @@ include(ExternalProject)
|
||||
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 CPPFLAGS=-fPIC ./configure --prefix=<INSTALL_DIR> CFLAGS=-fPIC CXXFLAGS=-fPIC LDFLAGS=-fPIC
|
||||
BUILD_IN_SOURCE 1)
|
||||
|
||||
10
support/patch/compile_ctemplate_use_centos8_with_gcc7.patch
Normal file
10
support/patch/compile_ctemplate_use_centos8_with_gcc7.patch
Normal file
@@ -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.
|
||||
Reference in New Issue
Block a user