Dr. David Kirkby wrote:
Jaap Spies wrote:
Dr David Kirkby wrote:
From what I have read of the GNU linker documentation on the linker
'ld'
http://sourceware.org/binutils/docs-2.20/ld/Options.html#Options
there is no such flag as -m64. So I can't understand how it works.
(There is an opton -64 on the Sun linker, but it rarely needed).
Can you explain this?
There are spkgs which use g++ as linker, e.g. givaro, linbox.
Jaap
But I don't understand why that should make any difference, as
ultimately g++ will call the linker.
g++ needs the -m64 flag to produce a 64 bit shared library.
Jaap
See below, where I purposely changed the permissions of the linker, so
it was unreadable. Then tried to compile a program with g++, and it
fails due to a permission denied error on the linker. So I would have
thought it immaterial how the program is linked.
drkir...@hawk:~# ls -l /usr/ccs/bin/ld
lrwxrwxrwx 1 root root 12 Oct 26 17:20 /usr/ccs/bin/ld -> .../../bin/ld
drkir...@hawk:~# ls -l /bin/ld
-rwxr-xr-x 1 root bin 13748 May 14 2009 /bin/ld
drkir...@hawk:~# chmod 000 /bin/ld
drkir...@hawk:~# g++ test.cpp
collect2: error trying to exec '/usr/ccs/bin/ld': execvp: Permission denied
collect2: ld returned 255 exit status
I clearly don't understand what is going on. I will ask on gcc-help, to
see what they say, as I think it is more complicated than the fact g++
is used for linking.
Dave
--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org