build: limit symbols exported by libocloc

Related-To: NEO-9558
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-11-21 14:42:25 +00:00
committed by Compute-Runtime-Automation
parent 007d9c2801
commit 18c25e5aa3
2 changed files with 17 additions and 0 deletions

View File

@@ -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)

View File

@@ -0,0 +1,14 @@
/*
* Copyright (C) 2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
{
global:
oclocInvoke;
oclocFreeOutput;
oclocVersion;
local: *;
};