Build netsurf statically

This commit is contained in:
Jeremy Soller 2019-06-11 16:51:18 -06:00
parent b24ca8c7e1
commit 1483b6cd5c
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1

View File

@ -17,7 +17,7 @@ function recipe_build {
sysroot="$(realpath ../sysroot)"
export TARGET="framebuffer"
export CFLAGS="-I$sysroot/include -I${PWD}/inst-${TARGET}/include"
export LDFLAGS="-L$sysroot/lib -L${PWD}/inst-${TARGET}/lib -Wl,--allow-multiple-definition -Wl,-Bstatic"
export LDFLAGS="-L$sysroot/lib -L${PWD}/inst-${TARGET}/lib -static -Wl,--allow-multiple-definition -Wl,-Bstatic"
# nghttp2 is not linked for some reason
export LDFLAGS="${LDFLAGS} -lcurl -lnghttp2"
make V=1 -j"$(nproc)"