tpoechtrager / osxcross

Mac OS X cross toolchain for Linux, FreeBSD, OpenBSD and Android (Termux)
GNU General Public License v2.0
2.85k stars 320 forks source link

Multiple Sdks #312

Closed lmtr0 closed 1 year ago

lmtr0 commented 2 years ago

Hi there, good day,

is possible to compile for multiple sdks? like I have 2 sdks in the tarballs directory, if I build.sh twice and will I have both installed?

Flow86 commented 1 year ago

you can simply set an environment variable for this afterwards:

e.g

# OSXCROSS_SDKROOT=/path/to/SDKs/MacOSX13.1.sdk /opt/osxcross/bin/osxcross-conf
...
export OSXCROSS_SDK=/path/to/SDKs/MacOSX13.1.sdk
export OSXCROSS_SDK_DIR=/path/to/SDKs/MacOSX13.1.sdk/..
export OSXCROSS_SDK_VERSION=13.1
...
lmtr0 commented 1 year ago

got it, thx