summaryrefslogtreecommitdiff
path: root/branding/templates/osx/cross-compile.txt
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2019-07-15 18:06:29 +0200
committerRuben Pollan <meskio@sindominio.net>2019-08-05 11:46:16 -0400
commit1106467f972e6e5d6781412e999d7c44195bb2df (patch)
treea0f72d3902407564439cfe866aeba4a03d9854bb /branding/templates/osx/cross-compile.txt
parentf8218b2beb8b184e7b3585f1280695ecfef040f9 (diff)
[feat] osx build templates
Diffstat (limited to 'branding/templates/osx/cross-compile.txt')
-rw-r--r--branding/templates/osx/cross-compile.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/branding/templates/osx/cross-compile.txt b/branding/templates/osx/cross-compile.txt
new file mode 100644
index 0000000..bf3b5ec
--- /dev/null
+++ b/branding/templates/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