Skip to content

Instantly share code, notes, and snippets.

View darkgeek's full-sized avatar
🎯
Focusing

Justin Yang darkgeek

🎯
Focusing
View GitHub Profile
@darkgeek
darkgeek / PKGBUILD.patch
Created August 30, 2018 18:38
Support aarch64 for qemu-user-static
--- PKGBUILD 2018-08-31 02:30:42.954132382 +0800
+++ PKGBUILD.after 2018-08-31 02:36:12.363488755 +0800
@@ -5,7 +5,7 @@
pkgver=2.12
pkgrel=4
pkgdesc="A generic and open source processor emulator which achieves a good emulation speed by using dynamic translation, statically linked."
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'aarch64')
license=('GPL2' 'LGPL2.1')
url="http://wiki.qemu.org/Index.html"
@darkgeek
darkgeek / gist:f927765f98b0e70d594c7e99f01bab10
Created May 30, 2019 16:24
Failed to build openresty on OpenBSD
🕒 05-31 00:13:53 👉 ~/Shares/openresty-1.15.8.2rc0 $ ./configure --prefix=/home/justin/Apps/openresty --with-luajit-ldflags='-lc++abi -lpthread' <
platform: bsd (openbsd)
cp -rp bundle/ build
cd build
cd LuaJIT-2.1-20190507
INFO: found -msse4.2 in cc.
gmake TARGET_STRIP=@: CCDEBUG=-g XCFLAGS='-DLUAJIT_ENABLE_LUA52COMPAT -msse4.2' LDFLAGS='-lc++abi -lpthread' CC=cc PREFIX=/home/justin/Apps/openresty/luajit
==== Building LuaJIT 2.1.0-beta3 ====
gmake -C src
gmake[1]: Entering directory '/home/justin/Shares/openresty-1.15.8.2rc0/build/LuaJIT-2.1-20190507/src'