Skip to content

Commit

Permalink
zlib: remove LDFLAGS workaround.
Browse files Browse the repository at this point in the history
Added in 4d39b70 without explanation as
to why.

We also revbump to rebuild the binary. On x86_64-musl, old libz.so,
built with gcc 7, is using a 2132KB RE mmap when dynamically linked,
probably because of a 0x200000 alignment required for the RE section.
After rebuilding, 96KB are used, with the actual RE mmap reduced to 56K.
The new alignment is 0x1000.
  • Loading branch information
ericonr committed Jul 17, 2021
1 parent 99b779c commit 9dc9a42
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions srcpkgs/zlib/template
@@ -1,20 +1,17 @@
# Template file for 'zlib'
pkgname=zlib
version=1.2.11
revision=3
revision=4
bootstrap=yes
build_style=configure
configure_args="--prefix=/usr --shared"
short_desc="Compression/decompression Library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Zlib"
homepage="http://www.zlib.net"
distfiles="$homepage/$pkgname-$version.tar.gz"
checksum=c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1

do_configure() {
LDFLAGS= LDSHAREDLIBC= ./configure --prefix=/usr --shared
}

zlib-devel_package() {
depends="zlib>=${version}_${revision}"
short_desc+=" - development files"
Expand Down

0 comments on commit 9dc9a42

Please sign in to comment.