Skip to content

Commit ce8e4e7

Browse files
committed
Handle unresolved relocations at link time
1 parent a89f804 commit ce8e4e7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

setup.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,16 @@ def run(self):
189189
'-fno-strict-aliasing',
190190
'-Wno-error=declaration-after-statement',
191191
'-Werror=implicit-function-declaration',
192+
'-fvisibility=hidden',
193+
'-fno-common',
192194
]
193195
)
196+
if sys.platform == 'linux':
197+
ext.extra_link_args.extend(
198+
[
199+
'-Wl,-Bsymbolic',
200+
]
201+
)
194202

195203
if self.debug:
196204
ext.define_macros.append(('PYXMLSEC_ENABLE_DEBUG', '1'))

0 commit comments

Comments
 (0)