]> git.sesse.net Git - vlc/commitdiff
cmake: Add -read_only_relocs warning on ffmpeg for Pre-10.5.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 8 Feb 2008 22:08:02 +0000 (22:08 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 8 Feb 2008 22:08:02 +0000 (22:08 +0000)
extras/buildsystem/cmake/include/config.cmake
extras/buildsystem/cmake/include/vlc_module_funcs.cmake

index 57acb370ac5167df53bcf6d9a7e5410817d806be..e874859dd626fc406a953fca588667a1e62494d2 100644 (file)
@@ -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)
index 3ea7846e1a72bcdd592d36223adce7c1979109c5..b3933dbe6b4292b939c306dbac63d0298a486e56 100644 (file)
@@ -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)