mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 06:24:51 +08:00
build: limit symbols exported by libocloc
Related-To: NEO-9558 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
007d9c2801
commit
18c25e5aa3
@@ -264,6 +264,9 @@ endif()
|
||||
|
||||
if(UNIX)
|
||||
target_link_libraries(${OCLOC_NAME}_lib dl pthread)
|
||||
set_property(TARGET ${OCLOC_NAME}_lib
|
||||
APPEND_STRING PROPERTY LINK_FLAGS " -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/ocloc.exports"
|
||||
)
|
||||
endif()
|
||||
|
||||
set(CLOC_LIB_SRCS_LIB ${CLOC_LIB_SRCS_LIB} PARENT_SCOPE)
|
||||
|
||||
14
shared/offline_compiler/source/ocloc.exports
Normal file
14
shared/offline_compiler/source/ocloc.exports
Normal file
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* Copyright (C) 2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
{
|
||||
global:
|
||||
oclocInvoke;
|
||||
oclocFreeOutput;
|
||||
oclocVersion;
|
||||
local: *;
|
||||
};
|
||||
Reference in New Issue
Block a user