diff options
author | Daniel Bertalan <dani@danielbertalan.dev> | 2022-04-10 10:36:16 +0200 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-04-23 10:43:32 -0700 |
commit | 899616198c50df80434682d1e66161b521028ddf (patch) | |
tree | ba380de3a6344a2fc05d2a176a85823d0f6d9346 | |
parent | f1d47ea618b9c8be9a448ec1130099b0985d3630 (diff) | |
download | serenity-899616198c50df80434682d1e66161b521028ddf.zip |
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.
-rwxr-xr-x | Ports/zlib/package.sh | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Ports/zlib/package.sh b/Ports/zlib/package.sh index 4ee53ae490..c70598eca9 100755 --- a/Ports/zlib/package.sh +++ b/Ports/zlib/package.sh @@ -5,12 +5,6 @@ useconfigure=true files="https://www.zlib.net/zlib-${version}.tar.gz zlib-${version}.tar.gz 91844808532e5ce316b3c010929493c0244f3d37593afd6de04f71821d5136d9" 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 |