diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-03-03 10:28:17 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-03-03 10:28:17 +0000 |
commit | d99093fb4bb5652015c06274d64083daa2439e4f (patch) | |
tree | cf61513204d97974179580065e85df5c8009087c /media-libs/libilbc/files | |
parent | 463397cf1e064185110fe57c568d73f99a06f5d1 (diff) |
gentoo resync : 03.03.2021
Diffstat (limited to 'media-libs/libilbc/files')
-rw-r--r-- | media-libs/libilbc/files/libilbc-3.0.4-respect-CFLAGS.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/media-libs/libilbc/files/libilbc-3.0.4-respect-CFLAGS.patch b/media-libs/libilbc/files/libilbc-3.0.4-respect-CFLAGS.patch new file mode 100644 index 000000000000..feb3a2255e10 --- /dev/null +++ b/media-libs/libilbc/files/libilbc-3.0.4-respect-CFLAGS.patch @@ -0,0 +1,25 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index cda8105..b766ec2 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -52,15 +52,15 @@ set(CMAKE_CXX_STANDARD 14) + + if((CMAKE_C_COMPILER_ID STREQUAL "GNU") OR + (CMAKE_C_COMPILER_ID MATCHES "Clang" AND CMAKE_C_COMPILER_FRONTEND_VARIANT STREQUAL "GNU")) +- set(CMAKE_C_FLAGS "-Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wno-unused-parameter -fno-strict-aliasing") +- set(CMAKE_C_FLAGS_DEBUG "-g") +- set(CMAKE_C_FLAGS_RELEASE "-O2") ++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wno-unused-parameter -fno-strict-aliasing") ++ set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS}") ++ set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS}") + endif() + if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR + (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "GNU")) + set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-unused-parameter -fno-strict-aliasing") +- set(CMAKE_CXX_FLAGS_DEBUG "-g") +- set(CMAKE_CXX_FLAGS_RELEASE "-O2") ++ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_C_FLAGS}") ++ set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_C_FLAGS}") + endif() + + if(CMAKE_C_COMPILER_ID STREQUAL "MSVC") |