diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2018-11-21 19:31:41 +0100 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2018-11-21 19:31:41 +0100 |
commit | 5b28680fa70dcec272088265f5bffdc90675bb8e (patch) | |
tree | c37e8a4af49756b65ef963d9dea1617971a6f3cb | |
parent | cabf0eedc725d3a24cb975f659373e1839177d11 (diff) |
[docs] add notes about osx cross-compiling
-rw-r--r-- | osx/cross-compile.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/osx/cross-compile.txt b/osx/cross-compile.txt new file mode 100644 index 0000000..bf3b5ec --- /dev/null +++ b/osx/cross-compile.txt @@ -0,0 +1,11 @@ +# some notes on cross-compiling for osx + +wget https://s3.dockerproject.org/darwin/v2/MacOSX10.10.sdk.tar.xz +sha256sum 631b4144c6bf75bf7a4d480d685a9b5bda10ee8d03dbf0db829391e2ef858789 +git clone https://github.com/tpoechtrager/osxcross +mv MacOSX* osxcross/tarballs +sudo apt-get install -y --force-yes clang llvm-dev libxml2-dev uuid-dev \ + libssl-dev bash patch make tar xz-utils bzip2 gzip sed cpio libbz2-dev +cd oscross +./build.sh +PATH=$PATH:/home/user/dev/osxcross/osxcross/target/bin/ MACOSX_DEPLOYMENT_TARGET=10.10 CGO_ENABLED=1 GOOS=darwin CC="o64-clang" go build 0xacab.org/leap/bitmask-systray |