[MacPorts] #57612: clang does not respect -syslibroot when linking

MacPorts noreply at macports.org
Fri Nov 16 17:55:41 UTC 2018


#57612: clang does not respect -syslibroot when linking
---------------------+--------------------
  Reporter:  kencu   |      Owner:  (none)
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:          |   Keywords:
      Port:          |
---------------------+--------------------

Comment (by kencu):

 Here's a useful option that can be passed to the link command that fixes
 this problem. I think it looks generic enough that it could nestle into
 base and should not cause any trouble. It fixes the build of `libedit`
 with libtool when added to `portconfigure.tcl`:
 {{{
              append_to_environment_value configure "LDFLAGS"
 -Wl,-syslibroot,${configure.sdkroot}
  +           append_to_environment_value configure "LDFLAGS"
 -Wc,-isysroot,${configure.sdkroot}
 }}}

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


More information about the macports-tickets mailing list