Stripping shared object for linux pymod

This commit is contained in:
Thomas Ferreira de Lima 2019-04-02 22:39:12 -04:00
parent 32c07759fc
commit c5ea287158
No known key found for this signature in database
GPG Key ID: 43E98870EAA0A86E
1 changed files with 4 additions and 0 deletions

View File

@ -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):