8000 Merge pull request #26286 from rgommers/staticlib-hiddensymbols · numpy/numpy@9022b0e · GitHub
[go: up one dir, main page]

Skip to content

Commit 9022b0e

Browse files
authored
Merge pull request #26286 from rgommers/staticlib-hiddensymbols
BLD: ensure libnpymath and highway static libs use hidden visibility
2 parents 1e9af74 + 84f283a commit 9022b0e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

numpy/_core/meson.build

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ if use_highway
109109
],
110110
cpp_args: '-DTOOLCHAIN_MISS_ASM_HWCAP_H',
111111
include_directories: ['src/highway'],
112-
install: false
112+
install: false,
113+
gnu_symbol_visibility: 'hidden',
113114
)
114115
else
115116
highway_lib = []
@@ -558,6 +559,7 @@ npymath_lib = static_library('npymath',
558559
install_dir: np_dir / '_core/lib',
559560
name_prefix: name_prefix_staticlib,
560561
name_suffix: name_suffix_staticlib,
562+
gnu_symbol_visibility: 'hidden',
561563
)
562564

563565
dir_separator = '/'

0 commit comments

Comments
 (0)
0