libyuv: fix libyuv.so not linking against libjpeg
This commit is contained in:
parent
5658def54f
commit
ddd1e56610
2 changed files with 14 additions and 1 deletions
|
@ -24,7 +24,9 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [ libjpeg ];
|
||||
|
||||
NIX_CFLAGS_LINK = lib.optional stdenv.isDarwin "-ljpeg";
|
||||
patches = [
|
||||
./link-library-against-libjpeg.patch
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://chromium.googlesource.com/libyuv/libyuv";
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 636531ee..af1b0e4e 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -39,6 +39,7 @@ INCLUDE ( FindJPEG )
|
||||
if (JPEG_FOUND)
|
||||
include_directories( ${JPEG_INCLUDE_DIR} )
|
||||
target_link_libraries( yuvconvert ${JPEG_LIBRARY} )
|
||||
+ target_link_libraries( ${ly_lib_shared} ${JPEG_LIBRARY} )
|
||||
add_definitions( -DHAVE_JPEG )
|
||||
endif()
|
Loading…
Reference in a new issue