build: slim down the libsyscap_interface_shared.so.

Signed-off-by: yudechen <chenyude@huawei.com>
Change-Id: I41f3c041ceabec9d861c32182f534b5258292a2e
This commit is contained in:
yudechen
2023-01-09 20:26:22 +08:00
parent 089c264ced
commit 29ad89c2a0
2 changed files with 34 additions and 0 deletions
+10
View File
@@ -87,6 +87,15 @@ if (defined(ohos_lite)) {
}
} else {
shared_library("syscap_interface_shared") {
_version_script = rebase_path("libsyscap_interface_shared.versionscript")
if (!defined(ldflags)) {
ldflags = []
}
ldflags += [
"-rdynamic",
"-Wl,--version-script=${_version_script}",
]
include_dirs = [
"include",
"src",
@@ -106,6 +115,7 @@ if (defined(ohos_lite)) {
}
} else {
ohos_shared_library("syscap_interface_shared") {
version_script = "libsyscap_interface_shared.versionscript"
include_dirs = [
"include",
"src",
+24
View File
@@ -0,0 +1,24 @@
# Copyright (c) 2023 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
{
global:
ComparePcidString;
DecodeOsSyscap;
DecodePrivateSyscap;
EncodeOsSyscap;
EncodePrivateSyscap;
DecodeRpcidToStringFormat;
FreeCompareError;
local: *;
};