[MacPorts] #69628: Gildas 202303a fails to link on 10.8: Undefined symbols for architecture x86_64: "__ZNKSs7compareEPKc" etc.

MacPorts noreply at macports.org
Wed Apr 3 15:55:00 UTC 2024


#69628: Gildas 202303a fails to link on 10.8: Undefined symbols for architecture
x86_64:   "__ZNKSs7compareEPKc" etc.
---------------------------+--------------------------
  Reporter:  barracuda156  |      Owner:  bardeau
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.9.1
Resolution:                |   Keywords:  mountainlion
      Port:  gildas        |
---------------------------+--------------------------

Comment (by barracuda156):

 Replying to [comment:2 kencu]:
 > on systems < 10.9, {{{/usr/bin/clang++}}} links c++ code against
 {{{libstdc++}}} , not against {{{libc++}}}, unless you tell it otherwise.
 >
 > so you likely need to manually put {{{-stdlib=libc++}}} into the
 cxxflags.

 Did not know that. But why? Apple switched to `libc++` starting from 10.7,
 didn’t it?

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


More information about the macports-tickets mailing list