From: Greg Ward Date: Fri, 4 Aug 2000 01:28:39 +0000 (+0000) Subject: Added 'debug' flag to 'find_library_file()'. X-Git-Tag: v2.0b1~588 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e5e6015e5a888b62b65e049783ed623678e51240;p=thirdparty%2FPython%2Fcpython.git Added 'debug' flag to 'find_library_file()'. --- diff --git a/Lib/distutils/ccompiler.py b/Lib/distutils/ccompiler.py index d8d8ab916c3b..141af796a0f7 100644 --- a/Lib/distutils/ccompiler.py +++ b/Lib/distutils/ccompiler.py @@ -682,10 +682,12 @@ class CCompiler: """ raise NotImplementedError - def find_library_file (self, dirs, lib): + def find_library_file (self, dirs, lib, debug=0): """Search the specified list of directories for a static or shared - library file 'lib' and return the full path to that file. Return - None if it wasn't found in any of the specified directories. + library file 'lib' and return the full path to that file. If + 'debug' true, look for a debugging version (if that makes sense on + the current platform). Return None if 'lib' wasn't found in any of + the specified directories. """ raise NotImplementedError diff --git a/Lib/distutils/unixccompiler.py b/Lib/distutils/unixccompiler.py index 799560c39630..9339850102a1 100644 --- a/Lib/distutils/unixccompiler.py +++ b/Lib/distutils/unixccompiler.py @@ -317,7 +317,7 @@ class UnixCCompiler (CCompiler): return "-l" + lib - def find_library_file (self, dirs, lib): + def find_library_file (self, dirs, lib, debug=0): for dir in dirs: shared = os.path.join (