[MacPorts] #22168: gdc-0.24 fails to build on Snow Leopard

MacPorts noreply at macports.org
Wed Oct 21 12:18:15 PDT 2009


#22168: gdc-0.24 fails to build on Snow Leopard
-------------------------------+--------------------------------------------
 Reporter:  afalquina@…        |       Owner:  mww@…           
     Type:  defect             |      Status:  new             
 Priority:  Normal             |   Milestone:                  
Component:  ports              |     Version:  1.8.1           
 Keywords:                     |        Port:  gdc             
-------------------------------+--------------------------------------------

Comment(by afb@…):

 When building a non-Apple GCC (as in FSF GCC), you can't use the -arch
 flags (like in the default archflags).

 So you need to do some workaround like the
 http://trac.macports.org/browser/trunk/dports/lang/gcc41 port does:

 {{{
 # the generated compiler doesn't accept -arch
 if {[info exists build_arch] && ${os.platform} == "darwin"} {
     configure.cc_archflags
     configure.cxx_archflags
     configure.objc_archflags
     configure.pre_args-append --build=${build_arch}-apple-
 darwin${os.major}
 }
 }}}

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


More information about the macports-tickets mailing list