From 31bef885acc348e527b2bfe31587b321464451f7 Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 19 Feb 2021 12:48:20 +0000 Subject: media-libs/libilbc: restore patch Closes: https://bugs.gentoo.org/770892 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Sam James --- .../files/libilbc-3.0.4-respect-CFLAGS.patch | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 media-libs/libilbc/files/libilbc-3.0.4-respect-CFLAGS.patch (limited to 'media-libs/libilbc') 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") -- cgit v1.2.3-65-gdbad