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.
This commit is contained in:
Naftuli Tzvi Kay
2016-02-12 12:23:32 -08:00
parent 9fe6f49a55
commit 203189a98c
+4
View File
@@ -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