diff --git a/setup.py b/setup.py index 4c01802fa..9b13b54b9 100644 --- a/setup.py +++ b/setup.py @@ -310,6 +310,10 @@ class Config(object): else: loader_path = '$ORIGIN/..' args += ['-Wl,-rpath,' + loader_path] + # default linux shared object compilation uses the '-g' flag, + # which generates unnecessary debug information + # removing with strip-all during the linking stage + args += ['-Wl,--strip-all'] return args def macros(self):