[Distutils] Absolute path library names

Lee Taylor taylor@rhino.llnl.gov
Wed, 12 Jul 2000 12:20:04 -0700 (PDT)


This patch did exactly what I wanted. Thanks.
Lee Taylor

On Wed, 12 Jul 2000, Rene Liebscher wrote:

> It is not a missing function, it is only a wrong piece of code.
> It should look like this:
> ---------------------------------------------------------------------------------
> diff -BurN --minimal --exclude=*.pyc
> distutils.orig/distutils/unixccompiler.py
> distutils.patched/distutils/unixccompiler.py
> --- distutils.orig/distutils/unixccompiler.py   Wed Jun 28 03:29:09 2000
> +++ distutils.patched/distutils/unixccompiler.py        Wed Jul 12
> 15:29:21 2000
> @@ -320,7 +320,7 @@
>      def find_library_file (self, dirs, lib):
>  
>          for dir in dirs:
> -            shared = os.path.join (dir, self.shared_library_filename
> (lib))
> +            shared = os.path.join (dir, self.library_filename
> (lib,'shared'))
>              static = os.path.join (dir, self.library_filename (lib))
>  
>              # We're second-guessing the linker here, with not much hard 
> ----------------------------------------------------------------------------------
> library_filename comes from ccompiler.py, its second parameter is by
> default 'static'.