[MacPorts] #31046: py27-matplotlib fails to build with clang (Xcode 4.2)

MacPorts noreply at macports.org
Sat Nov 5 09:54:06 PDT 2011


#31046: py27-matplotlib fails to build with clang (Xcode 4.2)
---------------------------------+------------------------------------------
  Reporter:  rex_4539@…          |       Owner:  ram@…           
      Type:  defect              |      Status:  reopened        
  Priority:  Normal              |   Milestone:                  
 Component:  ports               |     Version:                  
Resolution:                      |    Keywords:  clang           
      Port:  py27-matplotlib     |  
---------------------------------+------------------------------------------

Comment(by ram@…):

 Ryan: How does the following look?

 {{{
 diff --git a/_resources/port1.0/group/python-1.0.tcl
 b/_resources/port1.0/group/python-1.0.tcl
 index 0bb872a..d095f85 100644
 --- a/_resources/port1.0/group/python-1.0.tcl
 +++ b/_resources/port1.0/group/python-1.0.tcl
 @@ -200,6 +200,9 @@ proc python_get_defaults {var} {
  options python.add_archflags
  default python.add_archflags yes

 +options python.set_compiler
 +default python.set_compiler no
 +
  pre-build {
      if {${python.add_archflags}} {
          if {[variant_exists universal] && [variant_isset universal]} {
 @@ -217,6 +220,10 @@ pre-build {
                               LDFLAGS="${configure.ld_archflags}"
          }
      }
 +    if {${python.add_compiler}} {
 +        build.env-append CC="${configure.cc}" \
 +                         CXX=${configure.cxx}"
 +    }
  }

  options python.link_binaries python.link_binaries_suffix
 }}}

 Then the `configure.compiler` call seems to override the compilers
 correctly.

-- 
Ticket URL: <https://trac.macports.org/ticket/31046#comment:22>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list