[MacPorts] #45142: pure-stldict @0.8: new port

MacPorts noreply at macports.org
Wed Sep 24 03:33:34 PDT 2014


#45142: pure-stldict @0.8: new port
---------------------------+--------------------------
  Reporter:  aggraef@…     |      Owner:  ryandesign@…
      Type:  submission    |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.3.1
Resolution:                |   Keywords:
      Port:  pure-stldict  |
---------------------------+--------------------------
Changes (by ryandesign@…):

 * owner:  macports-tickets@… => ryandesign@…
 * status:  new => assigned


Comment:

 Thanks, I've been meaning to get this port added.

 I disagree with these lines you've added:

 {{{
 # MacPorts wants to override these, but we really need them as they are.
 build.post_args         CXXFLAGS="-g -O2 -std=c++0x -Wall"
 }}}

 The reason why the pure portgroup sets CXXFLAGS is to build with the right
 `-arch` flags. Overriding this would normally mean `-arch` flags would no
 longer be used. However in this case I see they are still used, because
 the build also uses the LDFLAGS variable which still contains them.

 But let's step back and look at the real reason why you added this line.
 Looks like the pure-stldict Makefile sets CXXFLAGS, and the portgroup is
 overriding it. Generally, there needs to be a way to build a piece of
 software with additional CXXFLAGS (and other flags). Up until now, my
 understanding was that they correct way to do this with pure modules was
 to just supply `CXXFLAGS=...` as an argument to the `make` command. If
 that actually overrides the Makefile's CXXFLAGS, what do you suggest
 instead?

 Also, I see that the Makefile has a hardcoded reference to `g++` which
 needs to be changed to `$(CXX)`.

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


More information about the macports-tickets mailing list