Commit 883ed8d4 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

cmake: Add -read_only_relocs warning on ffmpeg for Pre-10.5.

parent fd718416
......@@ -216,6 +216,9 @@ if(APPLE)
add_definitions(-std=gnu99) # Hack for obj-c files to be compiled with gnu99
vlc_enable_modules(macosx minimal_macosx access_eyetv quartztext)
# On Pre-10.5
vlc_module_add_link_flags (ffmpeg "-read_only_relocs warning")
vlc_check_include_files (ApplicationServices/ApplicationServices.h)
vlc_check_include_files (Carbon/Carbon.h)
vlc_check_include_files (CoreAudio/CoreAudio.h)
......
......@@ -8,6 +8,7 @@ MACRO(vlc_add_module module_name)
endif( NOT ${ENABLE_NO_SYMBOL_CHECK} )
set_target_properties( ${module_name}_plugin PROPERTIES COMPILE_FLAGS
"-D__PLUGIN__ -DMODULE_NAME=${module_name} -DMODULE_NAME_IS_${module_name} -I${CMAKE_CURRENT_SOURCE_DIR} ${VLC_${module_name}_COMPILE_FLAG}" )
set_target_properties( ${module_name}_plugin PROPERTIES LINK_FLAGS "${VLC_${module_name}_LINK_FLAGS}" )
if (VLC_${module_name}_LINK_LIBRARIES)
target_link_libraries( ${module_name}_plugin ${VLC_${module_name}_LINK_LIBRARIES})
endif (VLC_${module_name}_LINK_LIBRARIES)
......@@ -42,6 +43,10 @@ MACRO(vlc_set_module_properties module_name)
set_target_properties(${module_name}_plugin ${ARGN})
ENDMACRO(vlc_set_module_properties)
MACRO(vlc_module_add_link_flags module_name)
set(VLC_${module_name}_LINK_FLAGS ${VLC_${module_name}_LINK_FLAGS} ${ARGN})
ENDMACRO(vlc_module_add_link_flags)
MACRO(vlc_module_add_link_libraries module_name)
set(VLC_${module_name}_LINK_LIBRARIES ${VLC_${module_name}_LINK_LIBRARIES} ${ARGN})
ENDMACRO(vlc_module_add_link_libraries)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment