From b71b53155aa110a6847dbfbd18d2ad9f2df70b04 Mon Sep 17 00:00:00 2001 From: xulei2020 <“xulei83@huawei.com”> Date: Thu, 10 Dec 2020 15:02:44 +0800 Subject: [PATCH] add code --- cmake/external_libs/jpeg_turbo.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/external_libs/jpeg_turbo.cmake b/cmake/external_libs/jpeg_turbo.cmake index 3040f6cd631..b4c9a7c841f 100644 --- a/cmake/external_libs/jpeg_turbo.cmake +++ b/cmake/external_libs/jpeg_turbo.cmake @@ -13,7 +13,7 @@ else() set(jpeg_turbo_CFLAGS "-fstack-protector-all -Wno-maybe-uninitialized -Wno-unused-parameter -fPIC -D_FORTIFY_SOURCE=2 -O2") endif() -set(jpeg_turbo_LDFLAGS "-Wl,-z,relro,-z,now,-z,noexecstack") +set(jpeg_turbo_LDFLAGS "-Wl,-z,relro,-z,now,-z,noexecstack,-s") set(jpeg_turbo_USE_STATIC_LIBS ON)