Ticket #6380 (closed defect: fixed)
[with patch, positive review] Allow NTL to build on Solaris with Sun or GNU linker
| Reported by: | drkirkby | Owned by: | drkirkby |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.1.1 |
| Component: | solaris | Keywords: | solaris ntl makefile GNUism |
| Cc: | Author(s): | David Kirkby | |
| Report Upstream: | Reviewer(s): | William Stein | |
| Merged in: | sage-4.1.1.alpha0 | Work issues: |
Description
Although the ntl-5.4.2.p7 package would build on Solaris 10 with gcc 4.4.0 if the gcc was configured to use the GNU linker from binutils, the package would not build with the gcc if the compiler was configured to use the Sun linker, with the following options:
--with-ld=/usr/ccs/bin/ld --without-gnu-ld
The part of the makefile executed when building a shared library would fail if the Sun linker was used. The makefile specified the same output filename twice, but in a way the Sun linker would not tolerate.
This patch simply removes a very small bit of code (just "-Wl,-soname,libcat DIRNAME.so "), which allows NTL to build properly, irrespective of the linker that is being used.
Please see
http://sage.math.washington.edu/home/kirkby/Solaris-fixes/ntl/
