Skip to content

Commit 484d6b1

Browse files
author
Raghuveer Devulapalli
committed
Add soversion to the lib
1 parent 3c9bf9a commit 484d6b1

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

lib/meson.build

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ if cpp.has_argument('-march=haswell')
66
'x86simdsort-avx2.cpp',
77
),
88
include_directories : [src],
9-
cpp_args : ['-march=haswell', flags_hide_symbols],
9+
cpp_args : ['-march=haswell'],
10+
gnu_symbol_visibility : 'inlineshidden',
1011
)
1112
endif
1213

@@ -16,7 +17,8 @@ if cpp.has_argument('-march=skylake-avx512')
1617
'x86simdsort-skx.cpp',
1718
),
1819
include_directories : [src],
19-
cpp_args : ['-march=skylake-avx512', flags_hide_symbols],
20+
cpp_args : ['-march=skylake-avx512'],
21+
gnu_symbol_visibility : 'inlineshidden',
2022
)
2123
endif
2224

@@ -26,7 +28,8 @@ if cpp.has_argument('-march=icelake-client')
2628
'x86simdsort-icl.cpp',
2729
),
2830
include_directories : [src],
29-
cpp_args : ['-march=icelake-client', flags_hide_symbols],
31+
cpp_args : ['-march=icelake-client'],
32+
gnu_symbol_visibility : 'inlineshidden',
3033
)
3134
endif
3235

@@ -36,7 +39,8 @@ if cancompilefp16
3639
'x86simdsort-spr.cpp',
3740
),
3841
include_directories : [src],
39-
cpp_args : ['-march=sapphirerapids', flags_hide_symbols],
42+
cpp_args : ['-march=sapphirerapids'],
43+
gnu_symbol_visibility : 'inlineshidden',
4044
)
4145
endif
4246

meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ int main() {
1717
}
1818
'''
1919
cancompilefp16 = cpp.compiles(fp16code, args:'-march=sapphirerapids')
20-
flags_hide_symbols = ['-fvisibility=hidden', '-fvisibility-inlines-hidden']
2120

2221
subdir('lib')
2322
libsimdsort = shared_library('x86simdsort',
2423
'lib/x86simdsort.cpp',
2524
include_directories : [utils, lib],
2625
link_with : [libtargets],
27-
cpp_args : [flags_hide_symbols],
26+
gnu_symbol_visibility : 'inlineshidden',
2827
install : true,
28+
soversion : 0,
2929
)
3030

3131
pkg_mod = import('pkgconfig')

0 commit comments

Comments
 (0)