[MacPorts] #39975: root: Add --enable-cxx11 for some variants

MacPorts noreply at macports.org
Fri Nov 8 17:51:12 PST 2013


#39975: root: Add --enable-cxx11 for some variants
--------------------------+-----------------------------------
  Reporter:  jfcaron@…    |      Owner:  mattiafrancescomoro@…
      Type:  enhancement  |     Status:  reopened
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.2.0
Resolution:               |   Keywords:
      Port:  root         |
--------------------------+-----------------------------------
Changes (by jeremyhu@…):

 * status:  closed => reopened
 * resolution:  wontfix =>


Comment:

 Replying to [comment:8 jfcaron@…]:
 > I would like to revive this ticket and add to the request that the flag
 not just be for --enable-cxx11, but to make root link against libcxx
 instead of libgcc.  The basic problem is that even if you compile the root
 port using a modern compiler that supports C++11, the libgcc library
 doesn't.  Try using a list initializer in a compiled ROOT macro and it
 doesn't compile.
 >
 > Whatever the ultimate solution is, I would like this line of code:
 >
 > static const vector<int> v = {1,2,3};
 >
 > to compile using ACLiC with root fresh-from-macports without special
 gSystem->SetMakeSharedLib stuff.  Language support for C++11 without
 library support only takes us so far.

 Yes.  I suggest that we enable C++11 support based on what the C++ runtime
 is.  If the user is using libc++, we should enable it.

-- 
Ticket URL: <https://trac.macports.org/ticket/39975#comment:9>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list