diff options
author | Floris Bos <bos@je-eigen-domein.nl> | 2016-12-15 15:28:02 +0100 |
---|---|---|
committer | Bernd Kuhls <bernd.kuhls@t-online.de> | 2017-02-12 17:48:43 +0100 |
commit | 0e78acbaaf3ebb9aa49aa62f57a1e3d402754213 (patch) | |
tree | 95882416825a4a099e26dd4d4e5a5f517aed7a9a /project | |
parent | 7e1d2a0bc82e8447ef7c5ee01ed58dd922418099 (diff) |
libdvd: fix setting compiler when cross-compiling
Fix setting exact compiler when cross-compiling libdvd*
Otherwise it can result in problems when configure decides to use
one with different ABI
==
[..]/libdvdnav.a: member [..]/libdvdnav.a(dvdnav.o) in archive
is not an object
collect2: error: ld returned 1 exit status
CMakeFiles/wrap_libdvdnav.dir/build.make:63: recipe for target
'system/players/VideoPlayer/libdvdnav-arm.so' failed
==
Diffstat (limited to 'project')
-rw-r--r-- | project/cmake/modules/FindLibDvd.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/project/cmake/modules/FindLibDvd.cmake b/project/cmake/modules/FindLibDvd.cmake index a083ddc4ed..82a235de03 100644 --- a/project/cmake/modules/FindLibDvd.cmake +++ b/project/cmake/modules/FindLibDvd.cmake @@ -76,7 +76,7 @@ if(NOT WIN32) endforeach() set(DVDREAD_CFLAGS "${DVDREAD_CFLAGS} -I${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/libdvd/include") - if(KODI_DEPENDSBUILD) + if(CMAKE_CROSSCOMPILING) set(EXTRA_FLAGS "CC=${CMAKE_C_COMPILER}") endif() |