[MacPorts] #42949: elvis crash on Mavericks

MacPorts noreply at macports.org
Thu Mar 20 06:15:48 PDT 2014


#42949: elvis crash on Mavericks
-----------------------+---------------------------------
  Reporter:  crosma@…  |      Owner:  macports-tickets@…
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.2.1
Resolution:            |   Keywords:  haspatch maintainer
      Port:  elvis     |
-----------------------+---------------------------------
Changes (by cal@…):

 * keywords:   => haspatch maintainer


Comment:

 Ideally, elvis should use the CFLAGS from `configure.cflags` (since that
 already contains optimization flags). Since it seems the Makefile
 correctly uses the `$(CFLAGS)` variable `build.env-append
 CFLAGS="${configure.cflags} [get_canonical_archflags cc]"` should help
 (the archflag thing is so that elvis will be compiled for the architecture
 chosen by a MacPorts user in macports.conf).

 See wiki:UsingTheRightCompiler#nonstandard-ports. Other Makefile variables
 should probably be patched appropriately aswell:
 {{{
 build.env-append CPPFLAGS="${configure.cppflags}" \
                  CFLAGS="${configure.cflags} [get_canonical_archflags cc]"
 \
                  LDFLAGS="${configure.ldflags} [get_canonical_archflags
 ld]" \
                  CXXFLAGS="${configure.cxxflags} [get_canonical_archflags
 cxx]" # this line only if the project contains C++ code
 }}}

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


More information about the macports-tickets mailing list