From c5ea287158483f66b1ea64db9fdb354b4de33d94 Mon Sep 17 00:00:00 2001 From: Thomas Ferreira de Lima Date: Tue, 2 Apr 2019 22:39:12 -0400 Subject: [PATCH] Stripping shared object for linux pymod --- setup.py | 4 ++++ 1 file changed, 4 insertions(+) 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):