#7864: libfplll tries to link 64-bit objects to 32-bit libstdc++.so
----------------------------+-----------------------------------------------
   Reporter:  drkirkby      |       Owner:  drkirkby                            
     
       Type:  defect        |      Status:  needs_work                          
     
   Priority:  major         |   Milestone:  sage-4.5                            
     
  Component:  solaris       |    Keywords:                                      
     
     Author:  David Kirkby  |    Upstream:  Reported upstream. Little or no 
feedback.
   Reviewer:                |      Merged:                                      
     
Work_issues:                |  
----------------------------+-----------------------------------------------

Comment(by wjp):

 It looks like this list of library search directories is generated by the
 configure-script by running {{{$(CC) -print-search-dirs}}} and then
 parsing the output. (When using gcc; I haven't looked at the other cases
 in the configure script.)

 This seems to strongly suggest that the way of selecting 32/64 bit builds
 using autoconf+libtool is to set CC (and consequently CXX. Maybe LD too?)
 to "gcc -m32" or "gcc -m64" (by using {{{CC="${CC:-gcc} -m64"}}} or
 similar where necessary?), instead of adding those options to
 CFLAGS/CXXFLAGS.

 It would be nice to find confirmation of this in the autotools or libtool
 documentation somewhere. I found a brief reference here, but that's hardly
 authorative:

 http://www.mail-archive.com/[email protected]/msg16326.html

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