[Python-Dev] Solaris family and 64 bits compiling
Jesus Cea
jcea at jcea.es
Thu Mar 17 14:02:00 CET 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 23/11/10 13:19, Jesus Cea wrote:
> Would be acceptable to change something like:
>
> """
> add_library_path("/usr/local/lib")
> """
>
> to something similar to:
>
> """
> if (platform.uname()=="SunOS") and (platform.architecture()[0]=="64bits") :
> add_library_path("/usr/local/lib/64")
> else :
> add_library_path("/usr/local/lib")
> """
>
> python-dev would consider that change OK?.
Resurrecting an old thread.
I think that, under SunOS and 64 bits, python should install the lib
directory under "/usr/local/lib/64", following the convention in the
platform.
In fact, under OpenIndiana 147, I see this:
"""
- -bash-4.0$ type python
python is /usr/bin/python
- -bash-4.0$ ldd /usr/bin/python
libpython2.6.so.1.0 => /usr/lib/libpython2.6.so.1.0
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /lib/libdl.so.1
libm.so.2 => /lib/libm.so.2
- -bash-4.0$ file /usr/bin/python
/usr/bin/python: ELF 32-bit LSB executable 80386 Version 1 [FPU],
dynamically linked, not stripped, no debugging information available
- -bash-4.0$ ls -lA /usr/lib/|grep python
lrwxrwxrwx 1 root root 19 Oct 1 10:55 libpython2.6.so ->
libpython2.6.so.1.0
- -rwxr-xr-x 1 root bin 1788896 Oct 1 10:55 libpython2.6.so.1.0
lrwxrwxrwx 1 root root 22 Oct 1 10:55 libpython2.6_db.so ->
libpython2.6_db.so.1.0
- -rwxr-xr-x 1 root bin 10372 Oct 1 10:55 libpython2.6_db.so.1.0
drwxr-xr-x 25 root bin 432 Oct 1 10:55 python2.6
- -bash-4.0$ ls -lA /usr/lib/64/|grep python
lrwxrwxrwx 1 root root 19 Oct 1 10:55 libpython2.6.so ->
libpython2.6.so.1.0
- -rwxr-xr-x 1 root bin 2217504 Oct 1 10:55 libpython2.6.so.1.0
lrwxrwxrwx 1 root root 22 Oct 1 10:55 libpython2.6_db.so ->
libpython2.6_db.so.1.0
- -rwxr-xr-x 1 root bin 13336 Oct 1 10:55 libpython2.6_db.so.1.0
- -bash-4.0$ file /usr/lib/64/libpython2.6.so.1.0
/usr/lib/64/libpython2.6.so.1.0: ELF 64-bit LSB dynamic lib AMD64
Version 1 [SSE2 SSE CMOV], dynamically linked, not stripped, no
debugging information available
"""
- --
Jesus Cea Avion _/_/ _/_/_/ _/_/_/
jcea at jcea.es - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/
jabber / xmpp:jcea at jabber.org _/_/ _/_/ _/_/_/_/_/
. _/_/ _/_/ _/_/ _/_/ _/_/
"Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/
"My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQCVAwUBTYIGSJlgi5GaxT1NAQIrGAP/fBcLKIdFN+O8jNArCs01m30pQC5rNAhp
hs1mTqlllpGkSQLDeQvcN/ctwFpR8a+mlC4yCFwYFB8CpB9TjilIKRn0RlerfOlw
U0OuhezPTGc75NY95a+x8iZG4FQYytMkv7ClPmyDjG/g68CTS/zArRoKGRA7trZk
+WbsLPK4lhg=
=ScvG
-----END PGP SIGNATURE-----
More information about the Python-Dev
mailing list