From 203189a98ca1b92c6f19bf70646bf841cc2f27ab Mon Sep 17 00:00:00 2001 From: Naftuli Tzvi Kay Date: Fri, 12 Feb 2016 12:21:19 -0800 Subject: [PATCH] Compile FFMPEG in PIC when configured as such. When the CMake flag is specified for position independent code, FFMPEG will be compiled with the --enable-pic flag. --- CMake/SetupFfmpeg.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMake/SetupFfmpeg.cmake b/CMake/SetupFfmpeg.cmake index b700b6753a..f10c7c14dd 100644 --- a/CMake/SetupFfmpeg.cmake +++ b/CMake/SetupFfmpeg.cmake @@ -22,6 +22,10 @@ list(APPEND FFMPEG_CONFIGURE "--enable-static" ) +if(CMAKE_POSITION_INDEPENDENT_CODE) + list(APPEND FFMPEG_CONFIGURE "--enable-pic") +endif() + if(MACOSX) # TODO: Remove these two items when Mac OS X StepMania builds in 64-bit. list(APPEND FFMPEG_CONFIGURE