mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 21:47:45 +00:00
Ports: Replace manually linking SDL2_image
with a libtool patch
This commit is contained in:
parent
9b4b068166
commit
e7f8389d37
3 changed files with 94 additions and 6 deletions
|
@ -12,15 +12,11 @@ configure() {
|
|||
--host="${SERENITY_ARCH}-pc-serenity" \
|
||||
--with-sdl-prefix="${SERENITY_INSTALL_ROOT}/usr/local" \
|
||||
--enable-webp=false --enable-webp-shared=false \
|
||||
--disable-static \
|
||||
--enable-shared \
|
||||
LDFLAGS="-lgui -lgfx -lipc -lcore -lm"
|
||||
}
|
||||
|
||||
build() {
|
||||
run make -k
|
||||
}
|
||||
|
||||
install() {
|
||||
run make -k DESTDIR="${SERENITY_INSTALL_ROOT}" install
|
||||
${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libSDL2_image.so -Wl,-soname,libSDL2_image.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libSDL2_image.a -Wl,--no-whole-archive -lpng -ljpeg -ltiff
|
||||
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libSDL2_image.la
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue