diff options
author | Tim Schumacher <timschumi@gmx.de> | 2021-10-16 15:03:00 +0200 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-10-16 15:36:04 -0700 |
commit | 418d69c0ad54876a02945e6b9f756d7103b30576 (patch) | |
tree | 5730c688b78bdf2ee7531a67d163c4ec3aeb4191 | |
parent | 126d6d083894e140198cec93e7b1f87aaf729f27 (diff) | |
download | serenity-418d69c0ad54876a02945e6b9f756d7103b30576.zip |
Ports: Fix dependencies for SDL2
We are doing nonstandard stuff with our headers, so SDL assumed that
both iconv and dlopen are available inside LibC, which they aren't.
Fix that by adding a dependency on libiconv and adding additional
linker flags.
-rwxr-xr-x | Ports/SDL2/package.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Ports/SDL2/package.sh b/Ports/SDL2/package.sh index 34522f109d..818ac64858 100755 --- a/Ports/SDL2/package.sh +++ b/Ports/SDL2/package.sh @@ -4,7 +4,8 @@ version=git workdir=SDL-main-serenity useconfigure=true files="https://github.com/SerenityPorts/SDL/archive/main-serenity.tar.gz SDL2-git.tar.gz" -configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt" "-DPULSEAUDIO=OFF" "-DJACK=OFF") +configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt" "-DPULSEAUDIO=OFF" "-DJACK=OFF" "-DEXTRA_LDFLAGS=-liconv;-ldl") +depends=("libiconv") configure() { run cmake "${configopts[@]}" |