[MacPorts] #71164: mpdecimal @4.0.0_1: Build failure on legacy OS X due to undefined symbols

MacPorts noreply at macports.org
Thu Oct 24 22:56:32 UTC 2024


#71164: mpdecimal @4.0.0_1: Build failure on legacy OS X due to undefined symbols
------------------------+-------------------------
  Reporter:  0xbf00     |      Owner:  Schamschula
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.10.2
Resolution:             |   Keywords:  leopard
      Port:  mpdecimal  |
------------------------+-------------------------

Comment (by ryandesign):

 Replying to [comment:1 Schamschula]:
 > I have no way of checking this on Leopard

 But you do have the ability on any system to verify whether the `-stdlib`
 flag is making it into the link command.

 Replying to [comment:3 kencu]:
 > possibly happening because {{{-stdlib=macports-libstdc++}}} is not
 making it onto the link line, despite being in the CXXFLAGS.

 Many build systems only use LDFLAGS (not CXXFLAGS) at link time. If that's
 the case here, options include patching the build system to add CXXFLAGS
 to the flags used at link time, or modifying the portfile to add the
 `-stdlib` flag to `configure.ldflags` such as:

 {{{#!tcl
 if {[string match *clang* ${configure.cxx}] && ${configure.cxx_stdlib} ne
 ""} {
     configure.ldflags-append -stdlib=${configure.cxx_stdlib}
 }
 }}}

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


More information about the macports-tickets mailing list