-
Notifications
You must be signed in to change notification settings - Fork 138
Closed
Description
export CC=musl-gcc CFLAGS="-Os"
./configure --enable-static
<...>
Checking for clock_gettime() ... yes.
Checking for InflateInit2() ... Failed to link with your system's zlib, can't continue...
export PKG_CONFIG_PATH=/usr/lib/zlib-ng-compat-static/pkgconfig
./configure --enable-static
<...>
Checking for clock_gettime() ... yes.
Checking for InflateInit2() ... Failed to link with your system's zlib, can't continue...But providing zlib headers/libz.a locations manually works:
export CC=musl-gcc CFLAGS="-I/usr/include/zlib-ng-compat-static -Os" LDFLAGS="-L/usr/lib/zlib-ng-compat-static -static"
./configure --enable-static
<...>
Checking for InflateInit2() ... yes.
Checking for pkg-config ... yes
Checking for libarchive >= 3.3.3 via pkg-config ... found version 3.8.1.
Checking for libssl via pkg-config ... found OpenSSL version 3.5.0.PKG_CONFIG_PATH works for other libs (overriding OpenSSL with LibreSSL here):
export PKG_CONFIG_PATH=/usr/lib/libressl-static/pkgconfig
./configure --enable-static
Checking for InflateInit2() ... yes.
Checking for pkg-config ... yes
Checking for libarchive >= 3.3.3 via pkg-config ... found version 3.8.1.
Checking for libssl via pkg-config ... found LibreSSL version 4.1.0.Metadata
Metadata
Assignees
Labels
No labels