mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:57:35 +00:00
Ports: Remove Clang -fPIC hack from zlib
Despite the comment, only -fPIE was enabled by default in the Clang toolchain, and not -fPIC. With the LLVM 14 upgrade, we made PIC the default.
This commit is contained in:
parent
f1d47ea618
commit
899616198c
1 changed files with 0 additions and 6 deletions
|
@ -5,12 +5,6 @@ useconfigure=true
|
||||||
files="https://www.zlib.net/zlib-${version}.tar.gz zlib-${version}.tar.gz 91844808532e5ce316b3c010929493c0244f3d37593afd6de04f71821d5136d9"
|
files="https://www.zlib.net/zlib-${version}.tar.gz zlib-${version}.tar.gz 91844808532e5ce316b3c010929493c0244f3d37593afd6de04f71821d5136d9"
|
||||||
auth_type="sha256"
|
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() {
|
configure() {
|
||||||
# Set uname to linux to prevent it finding the host's `libtool` on e.g. Darwin
|
# Set uname to linux to prevent it finding the host's `libtool` on e.g. Darwin
|
||||||
run ./configure --uname=linux
|
run ./configure --uname=linux
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue