mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-26 20:55:35 +03:00
Ports: Fix building zlib with Clang
Even though Clang generates PIC objects by default, an R_386_PC32 relocation still slips into libz.a if we don't set -fPIC explicitly.
This commit is contained in:
parent
7e5b22333e
commit
df06552b48
Notes:
sideshowbarker
2024-07-18 01:10:06 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/df06552b488 Pull-request: https://github.com/SerenityOS/serenity/pull/10903
@ -5,6 +5,12 @@ useconfigure=true
|
||||
files="https://www.zlib.net/zlib-${version}.tar.gz zlib-${version}.tar.gz c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1"
|
||||
auth_type="sha256"
|
||||
|
||||
pre_configure() {
|
||||
# HACK: Even though Clang generates PIC objects by default, an R_386_PC32
|
||||
# relocation still slips into libz.a if we don't set -fPIC explicitly.
|
||||
export CFLAGS="-fPIC -O3"
|
||||
}
|
||||
|
||||
configure() {
|
||||
# Set uname to linux to prevent it finding the host's `libtool` on e.g. Darwin
|
||||
run ./configure --uname=linux
|
||||
|
Loading…
Reference in New Issue
Block a user