From 71d86f1fe1485c0d5bfd2be556d8fed2cd4f9944 Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jeremy@system76.com> Date: Fri, 21 Jun 2019 17:33:52 -0600 Subject: [PATCH] Compile bash and curl statically --- recipes/bash/recipe.sh | 2 +- recipes/curl/recipe.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/recipes/bash/recipe.sh b/recipes/bash/recipe.sh index 03464a66b..b4ec7805a 100644 --- a/recipes/bash/recipe.sh +++ b/recipes/bash/recipe.sh @@ -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 \ diff --git a/recipes/curl/recipe.sh b/recipes/curl/recipe.sh index 988c35e35..98b388e13 100644 --- a/recipes/curl/recipe.sh +++ b/recipes/curl/recipe.sh @@ -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" \ -- GitLab