Commit c3d34ff9 authored by Tom Finegan's avatar Tom Finegan

Add some missing preproc flags to non-msvc cmake targets.

- -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
- -D_FILE_OFFSET_BITS=64
- -D_LARGEFILE_SOURCE

BUG=https://bugs.chromium.org/p/aomedia/issues/detail?id=76

Change-Id: I9b1430d3aebf1455c6401f2df3d571fc5bb0d264
parent 0a4ef080
......@@ -146,9 +146,15 @@ else ()
if (CMAKE_C_COMPILER_ID MATCHES "GNU\|Clang")
set(CONFIG_GCC 1)
endif ()
if ("${CMAKE_BUILD_TYPE}" MATCHES "Rel")
add_compiler_flag_if_supported("-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0")
endif ()
add_compiler_flag_if_supported("-D_LARGEFILE_SOURCE")
add_compiler_flag_if_supported("-D_FILE_OFFSET_BITS=64")
endif ()
if (AOM_TARGET_SYSTEM MATCHES "Darwin\|Linux\|Windows")
if ("${AOM_TARGET_SYSTEM}" MATCHES "Darwin\|Linux\|Windows")
set(CONFIG_OS_SUPPORT 1)
endif ()
......
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