[MacPorts] #65499: libgcc12 @12.1.0_3+stdlib_flag+universal Universal build broken

MacPorts noreply at macports.org
Sun Jul 17 18:34:47 UTC 2022


#65499: libgcc12 @12.1.0_3+stdlib_flag+universal Universal build broken
--------------------------+----------------------------
 Reporter:  johnrosshunt  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.7.2
 Keywords:  haspatch      |       Port:  libgcc12 gcc12
--------------------------+----------------------------
 libgcc12/gcc12 universal build fails on Snow Leopard (and presumably other
 platforms).  The following patch fixes universal builds for me.

 {{{
 diff -urN Portfile.old Portfile
 --- Portfile.old        2022-07-16 18:38:02.037436722 -0500
 +++ Portfile    2022-07-17 09:38:58.800365312 -0500
 @@ -426,9 +426,11 @@
  # the generated compiler doesn't accept -arch
  configure.env-append \
      "CPP=${configure.cc} -E" \
 +    "CPP_FOR_BUILD=${configure.cc} -E" \
      "CXXCPP=${configure.cxx} -E"
  build.env-append \
      "CPP=${configure.cc} -E" \
 +    "CPP_FOR_BUILD=${configure.cc} -E" \
      "CXXCPP=${configure.cxx} -E"
  configure.cc-append [get_canonical_archflags]
  configure.cc_archflags
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/65499>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list