1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-27 02:56:18 -04:00

[ build ] openssl static binary link fix

This commit is contained in:
Unknown 2022-05-21 23:21:58 +02:00
parent 8b1d180f8b
commit 135889d582

View File

@ -30,6 +30,9 @@ configure() {
# Thanks rkd77 for discovery of jemmaloc needed # Thanks rkd77 for discovery of jemmaloc needed
# to correct openssl functionality # to correct openssl functionality
# LIBS="-ljemalloc -lpthread -lm" \ # LIBS="-ljemalloc -lpthread -lm" \
# Update: Thanks to JF for this solution for solving
# crashes using pthread
# -Wl,--whole-archive -lpthread -Wl,--no-whole-archive
time \ time \
CC=$1 \ CC=$1 \
LD=$2 \ LD=$2 \
@ -47,6 +50,7 @@ configure() {
--enable-utf-8 \ --enable-utf-8 \
--with-static \ --with-static \
--with-openssl \ --with-openssl \
--without-gpm \
--without-quickjs \ --without-quickjs \
--disable-88-colors \ --disable-88-colors \
--disable-backtrace \ --disable-backtrace \
@ -54,7 +58,6 @@ configure() {
--disable-debug \ --disable-debug \
--disable-cgi \ --disable-cgi \
--disable-combining \ --disable-combining \
--disable-gpm \
--disable-gopher \ --disable-gopher \
--disable-nls \ --disable-nls \
--disable-ipv6 \ --disable-ipv6 \
@ -220,7 +223,7 @@ set_arch() {
BIN_SUFFIX="" BIN_SUFFIX=""
CXXFLAGS="" CXXFLAGS=""
LDFLAGS="" LDFLAGS=""
LIBS="" LIBS="-Wl,--whole-archive -lpthread -Wl,--no-whole-archive"
fi fi
} }