cmake/sdlchecks.cmake
changeset 11851 8f295e7acefd
parent 11848 2f157c1ca383
child 11867 4e7f7e186d27
     1.1 --- a/cmake/sdlchecks.cmake	Wed Feb 07 14:07:54 2018 -0800
     1.2 +++ b/cmake/sdlchecks.cmake	Wed Feb 07 14:12:26 2018 -0800
     1.3 @@ -1132,6 +1132,7 @@
     1.4        set(VIDEO_RPI_INCLUDE_DIRS "/opt/vc/include" "/opt/vc/include/interface/vcos/pthreads" "/opt/vc/include/interface/vmcs_host/linux/" )
     1.5        set(VIDEO_RPI_LIBRARY_DIRS "/opt/vc/lib" )
     1.6        set(VIDEO_RPI_LIBRARIES bcm_host )
     1.7 +      set(VIDEO_RPI_LDFLAGS "-Wl,-rpath,/opt/vc/lib")
     1.8      endif()
     1.9      listtostr(VIDEO_RPI_INCLUDE_DIRS VIDEO_RPI_INCLUDE_FLAGS "-I")
    1.10      listtostr(VIDEO_RPI_LIBRARY_DIRS VIDEO_RPI_LIBRARY_FLAGS "-L")
    1.11 @@ -1152,6 +1153,7 @@
    1.12        set(SOURCE_FILES ${SOURCE_FILES} ${VIDEO_RPI_SOURCES})
    1.13        list(APPEND EXTRA_LIBS ${VIDEO_RPI_LIBRARIES})
    1.14        set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${VIDEO_RPI_INCLUDE_FLAGS} ${VIDEO_RPI_LIBRARY_FLAGS}")
    1.15 +      list(APPEND EXTRA_LDFLAGS ${VIDEO_RPI_LDFLAGS})
    1.16      endif(SDL_VIDEO AND HAVE_VIDEO_RPI)
    1.17    endif(VIDEO_RPI)
    1.18  endmacro(CheckRPI)