From 42270064cb9e13e6702ea0ab443ba361984b1c49 Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Thu, 24 Oct 2024 18:34:28 +0200 Subject: [PATCH] Hide unexported symbols 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 " https://github.com/LudovicRousseau/CCID/pull/147 --- meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meson.build b/meson.build index b63de5f4..06d42401 100644 --- a/meson.build +++ b/meson.build @@ -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')