#9871: Change compiler flags on Solaris to build without text relocations.
----------------------------+-----------------------------------------------
   Reporter:  drkirkby      |       Owner:  GeorgSWeber                         
        
       Type:  defect        |      Status:  needs_work                          
        
   Priority:  critical      |   Milestone:  sage-4.6                            
        
  Component:  build         |    Keywords:                                      
        
     Author:  David Kirkby  |    Upstream:  None of the above - read trac for 
reasoning.
   Reviewer:                |      Merged:                                      
        
Work_issues:                |  
----------------------------+-----------------------------------------------

Comment(by drkirkby):

 Replying to [comment:26 leif]:
 > The problem John ran into was just the (old) Sun linker not
 understanding {{{-soname}}}; the GNU linker and (I think) newer versions
 of the Sun linker understand both {{{-h}}} and {{{-soname}}}, so setting
 {{{SAGESOFLAGS}}} to {{{"-shared -Wl,-h,libcliquer.so"}}} as mentioned
 earlier should work on SunOS regardless of the linker.

 I could have swore I tried that before, and found it still had text
 relocation issues, but it does in fact work!

 I've tested it on:

  * !OpenSolaris on x86 hardware (32-bit)
  * Solaris 10 on SPARC 32-bit
  * Solaris 10 on SPARC 64-bit

 I've '''not''' yet checked it on

  * Solaris 10 (x86) 32-bit
  * Solaris 10 (x86) 64-bit
  * !OpenSolaris (x86) 64-bit

 I added the linker options {{{Wl,-ztext}}} too, as that will cause the
 build to fail as soon as there are these problems. So the issue will be
 noticed immediately, before anyone runs elfdump.

 Do you want me to add you to the author list? It seems only fair since you
 came up with the fix, but you might not want to be associated with such
 poor code overall!

 I've updated the package at
 http://boxen.math.washington.edu/home/kirkby/patches/cliquer-1.2.p7.spkg

 but have not committed the changes until I've more fully tested this, and
 know whether you want to be on the author list.

 Dave

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9871#comment:28>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to