New submission from Thomas Wouters <tho...@python.org>:

This patch adds support for the GCC visibility attributes to the PyAPI_* macros 
(currently only used for Windows.) GCC's default visibility is 'public', but 
can be changed to 'hidden' with the '-fvisibility=hidden' argument; see 
http://gcc.gnu.org/wiki/Visibility. This patch does not make the build use 
that, it merely makes Python function correctly when the default visibility 
*is* changed. (The benefit of building Python with -fvisibility=hidden is very 
small, as it causes only a handful of symbols to not be exported. When 
embedding Python, though, this can make a lot of difference.)

The patch also fixes a few modules that don't use PyMODINIT_FUNC for their 
module-init function definitions, like they should.

----------
files: gcc-visibility.diff
keywords: needs review, patch
messages: 130143
nosy: twouters
priority: normal
severity: normal
status: open
title: Use GCC visibility attrs in PyAPI_*
Added file: http://bugs.python.org/file21014/gcc-visibility.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11410>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to