Ticket #6443 (closed defect: fixed)
[with patch, positive review] A GNUism in zn_poly-0.9.p0 causes linking problems wiith Sun's linker
| Reported by: | drkirkby | Owned by: | drkirkby |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.1.1 |
| Component: | solaris | Keywords: | GNUism linker flags soname |
| Cc: | Author(s): | David Kirkby | |
| Report Upstream: | Reviewer(s): | Minh Van Nguyen | |
| Merged in: | sage-4.1.1.alpha0 | Work issues: |
Description
The basic problem is seen below. gcc is called with the -Wl,-soname flag, so -soname gets passed to the linker. But if the linker is the Sun linker, this breaks.
gcc -shared -Wl,-soname,libzn_poly-cat VERSION.so -o libzn_poly-cat VERSION.so src/array.o src/invert.o src/ks_support.o src/mulmid.o src/mulmid_ks.o src/misc.o src/mpn_mulmid.o src/mul.o src/mul_fft.o src/mul_fft_dft.o src/mul_ks.o src/nuss.o src/pack.o src/pmf.o src/pmfvec_fft.o src/tuning.o src/zn_mod.o -L/export/home/drkirkby/sage/sage-4.1.alpha2/local/lib -lgmp -lm ld: warning: option -o appears more than once, first setting taken ld: fatal: file libzn_poly-0.9.so: unknown file type
I should be able to fix this without too many problems.
