Notice libafsauthent_pic.a library in lib64
authorAlex Dehnert <adehnert@mit.edu>
Fri, 16 Dec 2011 18:55:29 +0000 (13:55 -0500)
committerAlex Dehnert <adehnert@mit.edu>
Fri, 16 Dec 2011 20:16:47 +0000 (15:16 -0500)
If available, we want to build against the _pic variant of the libafsauthent
library. On Fedora, that's in lib64, not lib, so we need to pick it up there
too.

Signed-off-by: Alex Dehnert <adehnert@mit.edu>

setup.py

index 1f28113..4c5c317 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,7 @@ include_dirs = [os.path.join(os.path.dirname(__file__), 'afs'),
                 '%s/include' % root]
 library_dirs = ['%s/lib' % root,
                 '%s/lib/afs' % root]
-if os.path.exists('%s/lib/libafsauthent_pic.a' % root):
+if os.path.exists('%s/lib/libafsauthent_pic.a' % root) or os.path.exists('%s/lib64/libafsauthent_pic.a' % root):
     suffix = '_pic'
 else:
     suffix = ''