#16044: Fix install_name for remaining libraries preventing build on OS X 10.4 
PPC
--------------------------------------+------------------------
       Reporter:  kcrisman            |        Owner:
           Type:  defect              |       Status:  new
       Priority:  blocker             |    Milestone:  sage-6.2
      Component:  packages: standard  |   Resolution:
       Keywords:                      |    Merged in:
        Authors:                      |    Reviewers:
Report Upstream:  N/A                 |  Work issues:
         Branch:                      |       Commit:
   Dependencies:                      |     Stopgaps:
--------------------------------------+------------------------

Comment (by leif):

 Replying to [comment:3 leif]:
 > Well, we used to have odd scripts like `sage-make_relative`, called
 after any package installation, unconditionally retrying to rewrite
 everything... :-)
 >
 > (Not to mention completely uselessly rerunning `ranlib` on all static
 libraries each time Sage thought its location might have changed...)

 For the record, that bu!**sh!** is still in Sage 6.2.beta6's `sage-
 location`:
 {{{
 #!python

 def update_library_files():
     """
     Run ``ranlib`` on all static libraries (``*.a``) in the library
     directory, and manually change the paths in all ``.la`` libtool
     archives.
     """
     for libdir in ["lib", "lib32", "lib64"]:
         LIB = os.path.join(SAGE_LOCAL, libdir)
         if not os.path.isdir(LIB):
             continue

         # The .a files should be re-ranlib'd:
         os.system('cd "%s"; ranlib *.a 1>/dev/null 2>/dev/null' % LIB)

         ...

 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/16044#comment:6>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to