diff options
author | erwincoumans <erwin.coumans@gmail.com> | 2019-04-09 12:22:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-09 12:22:21 -0700 |
commit | c6a43e0a5b1e77ab323a5905368e0963cd10bfaf (patch) | |
tree | 119b11e6c186d0696f1492abab19a26cd361ea57 | |
parent | c243f9e7c70c6fd3ab5991abdd1fc652b3bd1156 (diff) | |
parent | 4ca8b997f98f614efa4fac5ab3e8078d2a97d387 (diff) | |
download | bullet3-c6a43e0a5b1e77ab323a5905368e0963cd10bfaf.tar.gz |
Merge pull request #2190 from JayFoxRox/pybullet-visibility
Reduce visibility of Bullet symbols in PyBullet
-rw-r--r-- | examples/pybullet/pybullet.c | 3 | ||||
-rw-r--r-- | setup.py | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/examples/pybullet/pybullet.c b/examples/pybullet/pybullet.c index fe3b18799..0df3f14da 100644 --- a/examples/pybullet/pybullet.c +++ b/examples/pybullet/pybullet.c @@ -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) @@ -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 |