Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only static link gnutls #2

Merged
merged 4 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
tags:
- '*'
branches:
- main
pull_request:
jobs:
build:
name: Build the wget binary
Expand All @@ -23,6 +26,7 @@ jobs:
name: Publish the wget binary
runs-on: ubuntu-latest
needs: build
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Fetch the built binary
uses: actions/download-artifact@v2
Expand Down
8 changes: 4 additions & 4 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ rm nettle.tar.gz
--disable-shared \
--disable-documentation \
--disable-assembler
make
make -j $(nproc)
make install

popd
Expand All @@ -69,7 +69,7 @@ rm gnutls.tar.xz
--with-included-libtasn1 \
--with-included-unistring \
--without-p11-kit
make
make -j $(nproc)
make install

popd
Expand All @@ -84,11 +84,11 @@ fetch https://ftp.gnu.org/gnu/wget/wget-1.21.1.tar.gz wget.tar.gz \
tar --strip-components=1 -zxf wget.tar.gz
rm wget.tar.gz

export GNUTLS_LIBS="-L$SYSROOT/usr/lib -static -lgnutls -pthread -latomic -lhogweed -lnettle"
export GNUTLS_LIBS="-L$SYSROOT/usr/lib -Wl,-Bstatic -lgnutls -Wl,-Bdynamic -pthread -latomic -lhogweed -lnettle"
./configure \
--prefix="$SYSROOT/usr" \
--host="$CHOST"
make
make -j $(nproc)

popd
mv wget-build/src/wget .
Expand Down
Loading