Alexander Cieslewicz 962a55c277 Provide secondary sort keys to thin file sort
When thin files have the same alignment the sort order is dependant on
the qsort implementation. Additional sort keys ensure that we get the
same sort result on different platforms.
2025-08-29 15:57:00 +03:00
2025-06-13 13:11:31 -06:00

Apple cctools port for Linux, *BSD and Windows

This currently only supports the build of ld64 and lipo.

Current Version: 877.8 + ld64-253.9.
Originally ported by cjacker.

LICENSE

This project is licensed under the Apple Public Source License (APSL).

Windows Builds

The windows builds include a few extra components:

  • mmap-win32 (vendored): MIT License (see cctools\mman\LICENSE.mman)
  • dlfcn (linked): MIT License (see licenses\COPYING.dlfcn)
  • winpthreads (linked): MIT License and BSD Style License (see licenses\COPYING.winpthreads)
  • libgcc (linked): GPL-3.0-or-later with the GCC-exception-3.1(see licenses\COPYING.libgcc)
  • libstdc++ (linked): GPL-3.0-or-later with the GCC-exception-3.1 (see licenses\COPYING.libc++)

See the referenced LICENSE file(s) for complete terms.

SUPPORTED HOSTS

SUPPORTED OPERATING SYSTEMS:

Currently Tested: Linux, Windows

Untested: FreeBSD, NetBSD, OpenBSD, DragonFlyBSD, Mac OS X and iOS

SUPPORTED HOST ARCHITECTURES:

Tested: x86_64

Untested: x86, arm, aarch64, ppc, ppc64

SUPPORTED TARGET ARCHITECTURES

armv4t, armv5, armv6, armv7, armv7f, armv7k, armv7s, armv6m
armv7m, armv7em, armv8, arm64, arm64v8, i386, x86_64 and x86_64h.

SUPPORTED TARGET OPERATING SYSTEMS

Mac OS X, iOS, watchOS (untested) and tvOS (untested)

DEPENDENCIES

Clang and cmake 3.20+.

Optional, but recommended:

llvm-devel (For Link Time Optimization Support)
uuid-devel (For ld64 -random_uuid Support)
llvm-devel + xar-devel (For ld64 -bitcode_bundle Support)

You can find xar here.
Do not install libxar-dev on Ubuntu, it's a different package.

Building

  • cmake -S . -B build
  • cmake --build build
Description
⚠️ ARCHIVED: Original GitHub repository no longer exists. Preserved as backup on 2026-01-31T05:34:52.423Z
Readme 9.2 MiB
Languages
C 76.5%
C++ 18.5%
Roff 2.2%
Objective-C 2%
Assembly 0.2%
Other 0.5%