Skip to content

Commit

Permalink
libdvd: fix setting compiler when cross-compiling
Browse files Browse the repository at this point in the history
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
==
  • Loading branch information
maxnet authored and bkuhls committed Feb 12, 2017
1 parent 7e1d2a0 commit 0e78acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project/cmake/modules/FindLibDvd.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 0e78acb

Please sign in to comment.