Compile bash and curl statically

This commit is contained in:
Jeremy Soller 2019-06-21 17:33:52 -06:00
parent 170392f03a
commit 71d86f1fe1
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1
2 changed files with 4 additions and 2 deletions

View File

@ -14,7 +14,7 @@ function recipe_update {
function recipe_build {
sysroot="$PWD/../sysroot"
export LDFLAGS="-L$sysroot/lib"
export LDFLAGS="-L$sysroot/lib -static"
export CPPFLAGS="-I$sysroot/include"
wget -O support/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
./configure \

View File

@ -18,7 +18,7 @@ function recipe_update {
function recipe_build {
sysroot="$(realpath ../sysroot)"
export CFLAGS="-I$sysroot/include"
export LDFLAGS="-L$sysroot/lib"
export LDFLAGS="-L$sysroot/lib --static"
wget -O config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
autoreconf -i
./configure \
@ -28,8 +28,10 @@ function recipe_build {
--disable-ftp \
--disable-ipv6 \
--disable-ntlm-wb \
--disable-shared \
--disable-tftp \
--disable-threaded-resolver \
--enable-static \
--with-ca-path=/ssl/certs \
--with-nghttp2="$sysroot" \
--with-ssl="$sysroot" \