Changes between Version 1 and Version 2 of Ticket #57612, comment 17


Ignore:
Timestamp:
Nov 20, 2018, 11:55:27 PM (6 years ago)
Author:
jeremyhu (Jeremy Huddleston Sequoia)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57612, comment 17

    v1 v2  
    1111I thought I patched glibtool to pass that on to clang.  glibtool needs to be updated to pass along -isysroot (if it isn't already).  You'll need to run autoreconf or glibtoolize or similar to update with the installed glibtool.
    1212
     13> So using -Wl,-syslibroot -Wl,/path/to/SDK is basically useless at present, when using clang. Just use isysroot /path/to/SDK (which is broken because presently libtool strips it out of the link line).
     14
     15Yes, this is behaving as expected.  Please do NOT use -Wl,-syslibroot.  Please use -isysroot, so the driver and xcrun known what it is that you're requesting.  Passing no -isysroot will cause xcrun to add one for you which will cause cfe to pass that to ld64 before your -Wl,-syslibroot (as you saw above).
     16
     17macports-clang behaves the same way because it uses xcrun as well.