mirror of
https://github.com/bulletphysics/bullet3
synced 2025-01-18 21:10:05 +00:00
Reduce visibility of Bullet symbols in PyBullet
Avoids version conflicts in programs using PyBullet, which also link against Bullet libraries
This commit is contained in:
parent
43e164af8a
commit
4ca8b997f9
@ -10842,6 +10842,9 @@ static struct PyModuleDef moduledef = {
|
||||
};
|
||||
#endif
|
||||
|
||||
#if __GNUC__ >= 4
|
||||
__attribute__((visibility ("default")))
|
||||
#endif
|
||||
PyMODINIT_FUNC
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
PyInit_pybullet(void)
|
||||
|
2
setup.py
2
setup.py
@ -370,6 +370,8 @@ if _platform == "linux" or _platform == "linux2":
|
||||
CXX_FLAGS += '-DDYNAMIC_LOAD_X11_FUNCTIONS '
|
||||
CXX_FLAGS += '-DHAS_SOCKLEN_T '
|
||||
CXX_FLAGS += '-fno-inline-functions-called-once '
|
||||
CXX_FLAGS += '-fvisibility=hidden '
|
||||
CXX_FLAGS += '-fvisibility-inlines-hidden '
|
||||
EGL_CXX_FLAGS += '-DBT_USE_EGL '
|
||||
EGL_CXX_FLAGS += '-fPIC ' # for plugins
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user