In the makefile for symmetrica, the -lm has to go after all the .o files that 
need libm.a or libm.so. This is standard practice for GNU binutils and not a 
quirk of OpenSUSE, so I don't see why the build should have worked with any 
other Linux distribution (remember that I have exported

SAGE_CHECK=yes

).

In the GNU binutils doc under options:

http://sourceware.org/binutils/docs-2.20/ld/Options.html#Options

-l namespec
--library=namespec
    Add the archive or object file specified by namespec to the list of files 
to link. This option may be used any number of times. If namespec is of the 
form :filename, ld will search the library path for a file called filename, 
otherwise it will search the library path for a file called libnamespec.a.

    On systems which support shared libraries, ld may also search for files 
other than libnamespec.a. Specifically, on ELF and SunOS systems, ld will 
search a directory for a library called libnamespec.so before searching for 
one called libnamespec.a. (By convention, a .so extension indicates a shared 
library.) Note that this behavior does not apply to :filename, which always 
specifies a file called filename.

    The linker will search an archive only once, at the location where it is 
specified on the command line. If the archive defines a symbol which was 
undefined in some object which appeared before the archive on the command 
line, the linker will include the appropriate file(s) from the archive. 
However, an undefined symbol in an object appearing later on the command line 
will not cause the linker to search the archive again.

    See the -( option for a way to force the linker to search archives 
multiple times.

    You may list the same archive multiple times on the command line.

    This type of archive searching is standard for Unix linkers. However, if 
you are using ld on AIX, note that it is different from the behaviour of the 
AIX linker. 

-- 
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

Reply via email to