]> granicus.if.org Git - python/commitdiff
Patch #926209: Patch to setup.py to run on x86_64 Linux.
authorMartin v. Löwis <martin@v.loewis.de>
Fri, 4 Jun 2004 13:55:13 +0000 (13:55 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Fri, 4 Jun 2004 13:55:13 +0000 (13:55 +0000)
Misc/NEWS
setup.py

index 304c3be92dc488f43e126479f6538b589949bc66..ffc21d0f4df48be4b92730c3c43be64cd5785400 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -485,6 +485,9 @@ Tools/Demos
 Build
 -----
 
+- In order to find libraries, setup.py now also looks in /lib64, for use
+  on AMD64.
+
 - Bug #934635: Fixed a bug where the configure script couldn't detect
   getaddrinfo() properly if the KAME stack had SCTP support.
 
index 9057bacffc01efb604c50da8bd8bf7f26c5ad976..cc163eac8c2ae0755ac2503a00c42f40cd59e1e7 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -264,7 +264,7 @@ class PyBuildExt(build_ext):
         # lib_dirs and inc_dirs are used to search for files;
         # if a file is found in one of those directories, it can
         # be assumed that no additional -I,-L directives are needed.
-        lib_dirs = self.compiler.library_dirs + ['/lib', '/usr/lib']
+        lib_dirs = self.compiler.library_dirs + ['/lib', '/usr/lib', '/usr/lib/lib64']
         inc_dirs = self.compiler.include_dirs + ['/usr/include']
         exts = []