-
Notifications
You must be signed in to change notification settings - Fork 125
Build options
sunflsks edited this page Jun 25, 2021
·
6 revisions
This specific page documents specific build options and flags that can be used in order to build packages for Procursus. The variables listed here can all be found within the Makefile
.
The table below showcases supported commands (along its function) provided by Procursus
Command | Function |
---|---|
make , make all , make package
|
Compiles the entire Procursus suit and packs it into Debian packages |
make env |
Prints the proenv shell function to stdout to give a cross-compilation environment in your POSIX shell (e.g make env >> ~/.zshrc ) |
make everything |
Similar to make and make all , except that every supported host platform gets compiled and packed into Debian packages |
make (tool) |
Compiles a specific tool, sending headers and libraries to BUILD_BASE so that they can be accessed by other packages |
make (tool)-package |
Similar to make (tool) . After compiling, the tool gets packed into a Debian package |
make rebuild-(tool) |
Re-builds an entire package |
make rebuild-(tool)-package |
Similar to make rebuild-(tool) . After re-compiling, the tool gets packed into a Debian package |
make (tool)-deps |
Finds and returns a list of dylibs linked to (tool)
|
make clean |
Cleans out BUILD_STAGE , BUILD_STAGE , and BUILD_WORK
|
make extreme-clean |
Similar to make clean , cleaning out BUILD_SOURCE and BUILD_DIST
|
These commands can have specific build flags attached to them; the table below showcases build flags you can pass as options when using Procursus build commands
Variable | Required | Function | Example |
---|---|---|---|
MEMO_TARGET |
Yes | Specific architecture type that packages are built in | iphoneos-arm64 |
MEMO_CFVER |
Yes | CoreFoundation value of the minimum *OS version to compile for |
1700 , which represents the CoreFoundation version that corresponds to iOS 14 |
NO_PGP |
No | Specifies whether GPG signature checks on tarballs should be skipped. Set this option to 1 to enable it | NO_PGP=1 |
MEMO_QUIET |
No | Allows unnecessary warnings to be silenced. Set this option to 1 to enable it | MEMO_QUIET=1 |
TARGET_SYSROOT |
Yes | Specifies the PATH of your iOS SDK. Check the Makefile to see what each supported build system defaults to |
/usr/share/SDKs/iPhoneOS.sdk on iOS |
MACOSX_SYSROOT |
Yes | Specifies the PATH of your macOS SDK. Check the Makefile to see what each supported build system defaults to |
/usr/share/SDKs/MacOSX.sdk on iOS |
BUILD_ROOT |
No | Allows for specific packages or architecture suits to sent to a different place once compiled, rather than within the Git respository itself | This can be any path, as long as the directory exists |
MEMO_FORCE_LTO |
No | On macOS, LTO is enabled automatically, however on Linux and FreeBSD, it must be explicitly enabled in cctools-port. | MEMO_FORCE_LTO=1 |
MEMO_ALT_LTO_LIB |
No | Specify an alternative libLTO.{so,dylib} path that will be passed to the linker with -lto_library . |
/usr/local/llvm11/lib/libLTO.so |