From 9344279b34b236bd7633f5a80e26cde23704a109 Mon Sep 17 00:00:00 2001 From: yanghaoran Date: Wed, 30 Sep 2020 15:44:56 +0800 Subject: [PATCH] fix securec download links due to mistakes made by openeuler community --- cmake/external_libs/securec.cmake | 4 ++-- third_party/patch/securec/securec.patch001 | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/cmake/external_libs/securec.cmake b/cmake/external_libs/securec.cmake index 7dfdbeed..fc71d8ab 100644 --- a/cmake/external_libs/securec.cmake +++ b/cmake/external_libs/securec.cmake @@ -1,7 +1,7 @@ graphengine_add_pkg(securec VER 1.1.10 - URL https://gitee.com/openeuler/bounds_checking_function/repository/archive/v1.1.10.tar.gz - MD5 0782dd2351fde6920d31a599b23d8c91 + URL https://gitee.com/openeuler/libboundscheck/repository/archive/v1.1.10.tar.gz + MD5 193f0ca5246c1dd84920db34d2d8249f LIBS c_sec PATCHES ${GE_SOURCE_DIR}/third_party/patch/securec/securec.patch001 CMAKE_OPTION " " diff --git a/third_party/patch/securec/securec.patch001 b/third_party/patch/securec/securec.patch001 index 8376784b..c7864e01 100644 --- a/third_party/patch/securec/securec.patch001 +++ b/third_party/patch/securec/securec.patch001 @@ -1,10 +1,9 @@ -diff -Npur bounds_checking_function/CMakeLists.txt securec/CMakeLists.txt ---- bounds_checking_function/CMakeLists.txt 1970-01-01 08:00:00.000000000 +0800 -+++ securec/CMakeLists.txt 2020-05-11 17:10:49.406735400 +0800 -@@ -0,0 +1,19 @@ +diff -Npur -x .git libboundscheck/CMakeLists.txt securec/CMakeLists.txt +--- libboundscheck/CMakeLists.txt 1970-01-01 08:00:00.000000000 +0800 ++++ securec/CMakeLists.txt 2020-09-19 16:53:48.689460700 +0800 +@@ -0,0 +1,18 @@ +cmake_minimum_required(VERSION 3.14) +project(Securec) -+set(CMAKE_BUILD_TYPE "Debug") +set(CMAKE_C_FLAGS_DEBUG "$ENV{CFLAGS} -fPIC -O0 -Wall -Wno-deprecated-declarations -g2 -ggdb -fno-inline-functions -fno-omit-frame-pointer -D_LIBCPP_INLINE_VISIBILITY='' -D'_LIBCPP_EXTERN_TEMPLATE(...)='") +set(CMAKE_C_FLAGS_RELEASE "$ENV{CFLAGS} -fPIC -O3 -Wall -Wno-deprecated-declarations") +set(CMAKE_EXPORT_COMPILE_COMMANDS ON)