--- BinariesCheck.py +++ BinariesCheck.py @@ -16,6 +16,7 @@ import Config import Pkg import stat +import os DEFAULT_SYSTEM_LIB_PATHS=('/lib', '/usr/lib', '/usr/X11R6/lib', '/lib64', '/usr/lib64', '/usr/X11R6/lib64') @@ -193,7 +194,9 @@ # stripped ? if not unstrippable.search(i[0]) and not is_ocaml_native: - if not_stripped.search(i[1]): + if not_stripped.search(i[1]) and \ + (os.environ.get('BUILD_IS_RUNNING', None) == None or \ + os.environ.get('BUILD_DEBUG_FLAGS','').find('-g') != -1): printWarning(pkg, 'unstripped-binary-or-object', i[0]) # inspect binary file