Skip to content

Commit

Permalink
Merge pull request #2 from timower/main
Browse files Browse the repository at this point in the history
Only static link gnutls
  • Loading branch information
Eeems authored Nov 8, 2023
2 parents b8a7758 + 36ea398 commit b6b695d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
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

0 comments on commit b6b695d

Please sign in to comment.