Thomas Pöchtrager

Results 194 comments of Thomas Pöchtrager

These are some very good points. Thank you! > Similarly, build_lang.sh should not install Clang by default in /usr. LLVM/Clang gets installed to `/usr/local` which should not cause any issues.

The bundled xar is only used for SDK extraction atm. Install libxar on your system before building OSXCross: cd build mkdir tmp cd tmp tar xf ../../tarballs/xar-1.6.1.tar.gz cd xar-1.6.1 patch...

More on this topic: https://github.com/tpoechtrager/cctools-port/issues/31

Did you build GCC with LTO support enabled? If so, try adding the path of `liblto_plugin.so` to your `LD_LIBRARY_PATH` environment variable. cd osxcross find . -name liblto_plugin.so export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:

I managed to do this (it's actually quite easy): https://github.com/tpoechtrager/osxcross

I have merged the latest cctools and ld64 => https://github.com/tpoechtrager/cctools-port/tree/1009.2-ld64-907 I haven't done much testing for now. The merging was quite tricky this time. In fact, it get's harder and...

ld64 shouldn't link against libLTO. The library is loaded dynamically. If linking against it is indeed needed on macOS, then feel free to adjust the PR so it affects only...

Is this patch still needed with https://github.com/tpoechtrager/cctools-port/tree/986-ld64-711?

That patch doesn't look correct. #ifndef __APPLE__ if (__builtin_available(macOS 10.12, *)) { [...]

Are you using the correct SDK and correct target triple? According to ChatGPT it should be something like `x86_64-apple-iosXX.Y-simulator`