diff mbox series

[2/2] meson: intel: make symbols hidden by default

Message ID 20180912210536.29679-3-lucas.demarchi@intel.com (mailing list archive)
State New, archived
Headers show
Series intel: hide library symbols by default | expand

Commit Message

Lucas De Marchi Sept. 12, 2018, 9:05 p.m. UTC
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
---
 intel/meson.build | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/intel/meson.build b/intel/meson.build
index ff40ab91..c808781b 100644
--- a/intel/meson.build
+++ b/intel/meson.build
@@ -18,6 +18,8 @@ 
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 # SOFTWARE.
 
+hidden_symbols = ['-fvisibility=hidden']
+
 libdrm_intel = shared_library(
   'drm_intel',
   [
@@ -30,7 +32,7 @@  libdrm_intel = shared_library(
   include_directories : [inc_root, inc_drm],
   link_with : libdrm,
   dependencies : [dep_pciaccess, dep_pthread_stubs, dep_rt, dep_valgrind, dep_atomic_ops],
-  c_args : warn_c_args,
+  c_args : warn_c_args + hidden_symbols,
   version : '1.0.0',
   install : true,
 )