#6437: [with patch, needs review] polybori assumes the linker is the GNU one, so
breaks if Sun linker is used.
----------------------+-----------------------------------------------------
 Reporter:  drkirkby  |       Owner:  drkirkby                 
     Type:  defect    |      Status:  assigned                 
 Priority:  major     |   Milestone:  sage-4.1                 
Component:  solaris   |    Keywords:  solaris GNUism sun linker
 Reviewer:            |      Author:                           
   Merged:            |  
----------------------+-----------------------------------------------------

Comment(by drkirkby):

 FWIW, the actual code which decided on what flags to use is below.
 {{{
 def sonameprefix(env):
     print ("Checking for the operating system and linker, to find
 appropiate flags for the linker.")
     if env['PLATFORM']=="darwin":
         return "-Wl,-dylib_install_name -Wl,"
     elif env['PLATFORM']=="sunos":
         # if GNU in os.system('ld --version 2>&1 /dev/null '):
         if os.system('ld --version > /dev/null 2>&1 ') == 0  :
            print ("You are using the GNU linker on Solaris. Linker flag
 set to -soname")
            print ("Genererally, the Sun linker is recked to be better on
 Solaris")
            print ("but Sage has been built using the GNU linker")
            return '-Wl,-soname'  # GNU linker on Solaris
         else:
            print ("You are using the Sun linker on Solaris. Linker flag
 set to -h")
            return '-Wl,-h'       # Sun linker on Solaris
     else:
         return '-Wl,-soname,'    # Everything else, including linux

 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6437#comment:2>
Sage <http://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