[MacPorts] #71743: mpdecimal can't build universal x86_64/i386. And because of this, python313 can't build universal x86_64/i386

MacPorts noreply at macports.org
Sat May 10 17:48:41 UTC 2025


#71743: mpdecimal can't build universal x86_64/i386. And because of this, python313
can't build universal x86_64/i386
-----------------------------------+-------------------------
  Reporter:  kencu                 |      Owner:  Schamschula
      Type:  defect                |     Status:  closed
  Priority:  Normal                |  Milestone:
 Component:  ports                 |    Version:
Resolution:  fixed                 |   Keywords:
      Port:  mpdecimal, python313  |
-----------------------------------+-------------------------

Comment (by skrah):

 It might be worth pointing out that mpdecimal uses the environment
 MACHINE=universal on macOS and AIX for generating a single universal
 header file. In the case of macOS, this is for arm64/x86_64/ppc/ppc64.

 So, on arm64 I can do:

 $ ./configure CFLAGS="-arch arm64 -arch x86_64" CXXFLAGS="-arch arm64
 -arch x86_64" LDFLAGS="-arch arm64 -arch x86_64" LDXXFLAGS="-arch arm64
 -arch x86_64" MACHINE=universal

 make && make check passes. Library info gives:

 $ lipo -info libmpdec/libmpdec.4.dylib

 Architectures in the fat file: libmpdec/libmpdec.4.dylib are: x86_64 arm64

-- 
Ticket URL: <https://trac.macports.org/ticket/71743#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list