Skip to content

Commit

Permalink
Hide unexported symbols
Browse files Browse the repository at this point in the history
We now have:
$ nm -g --defined-only libccid.so
000000000000bf90 T IFDHCloseChannel
000000000000ea40 T IFDHControl
000000000000bf80 T IFDHCreateChannel
000000000000bf70 T IFDHCreateChannelByName
0000000000010ad0 T IFDHGetCapabilities
0000000000010880 T IFDHICCPresence
000000000000c1b0 T IFDHPowerICC
000000000000c030 T IFDHSetCapabilities
000000000000c5d0 T IFDHSetProtocolParameters
000000000000e260 T IFDHTransmitToICC

Thanks to Maksim Ivanov for the idea
" Mark suitable variables and functions static #147 "
#147
  • Loading branch information
LudovicRousseau committed Oct 24, 2024
1 parent ab307ea commit 4227006
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ conf_data = configuration_data({
'USE_COMPOSITE_AS_MULTISLOT' : get_option('composite-as-multislot'),
})

# global arguments
add_global_arguments('-fvisibility=hidden', language : 'c')

# tests for functions
compiler = meson.get_compiler('c')
if compiler.has_function('strlcpy')
Expand Down

0 comments on commit 4227006

Please sign in to comment.