summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2023-05-06 07:13:27 -0400
committerIonen Wolkens <ionen@gentoo.org>2023-05-06 07:16:46 -0400
commit8afeab3960787bbf956f6cf092aea72cd7d32ab9 (patch)
treee32e81354470fc8f4b2fa843c8ca42d5a7412fc8 /media-gfx/jpegoptim/files
parentapp-emulation/wine-proton: drop 7.0.5 (diff)
downloadgentoo-8afeab3960787bbf956f6cf092aea72cd7d32ab9.tar.gz
gentoo-8afeab3960787bbf956f6cf092aea72cd7d32ab9.tar.bz2
gentoo-8afeab3960787bbf956f6cf092aea72cd7d32ab9.zip
media-gfx/jpegoptim: fix build on x86
Works by accident on amd64 and missed that. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'media-gfx/jpegoptim/files')
-rw-r--r--media-gfx/jpegoptim/files/jpegoptim-1.5.3-system-libjpeg-libm.patch9
1 files changed, 9 insertions, 0 deletions
diff --git a/media-gfx/jpegoptim/files/jpegoptim-1.5.3-system-libjpeg-libm.patch b/media-gfx/jpegoptim/files/jpegoptim-1.5.3-system-libjpeg-libm.patch
new file mode 100644
index 000000000000..47e4cc1e539b
--- /dev/null
+++ b/media-gfx/jpegoptim/files/jpegoptim-1.5.3-system-libjpeg-libm.patch
@@ -0,0 +1,9 @@
+libm is used with mozjpeg and built libjpeg, but not if using system's,
+yet jpegoptim.c uses floor() either way.
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -356,3 +356,3 @@
+ target_include_directories(${PROJECT_NAME} PRIVATE ${JPEG_INCLUDE_DIRS})
+- target_link_libraries(${PROJECT_NAME} JPEG::JPEG)
++ target_link_libraries(${PROJECT_NAME} JPEG::JPEG m)
+ endif()