#14491: Add FreeBSD as a supported platform
--------------------------------+-------------------------
       Reporter:  kcrisman      |        Owner:  pjeremy
           Type:  enhancement   |       Status:  new
       Priority:  major         |    Milestone:  sage-5.12
      Component:  porting: BSD  |   Resolution:
       Keywords:                |    Merged in:
        Authors:                |    Reviewers:
Report Upstream:  N/A           |  Work issues:
         Branch:                |       Commit:
   Dependencies:                |     Stopgaps:
--------------------------------+-------------------------

Comment (by stephen):

 An issue has come up in sage-5.12.beta2, when trying to build sage using
 the port.  The port adds options like {{{-Wl,-rpath=lots-of-stuff}}} to
 {{{$(LDFLAGS)}}}.  This is a problem for the ncurses-5.9 subpackage,
 because in its FreeBSD build it uses /usr/local/bin/ld to create a shared
 library, and then these options cause errors.  The fix is very simple ---
 replace ld with cc.  The attached patch fixes this problem.  Nevertheless
 it is annoying to have to do this.
 {{{
 --- ncurses-5.9/src/configure.orig      2013-08-21 02:51:59.000000000
 +0000
 +++ ncurses-5.9/src/configure   2013-08-21 02:53:23.000000000 +0000
 @@ -5719,7 +5719,7 @@
                 cf_cv_shared_soname='`basename $@`'
         fi

 -               MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename
 $@` -o $@'
 +               MK_SHARED_LIB='${CC} -shared -Bshareable -soname=`basename
 $@` -o $@'
                 ;;
         netbsd*) #(vi
                 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/14491#comment:35>
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/groups/opt_out.

Reply via email to