diff options
author | Sam James <sam@gentoo.org> | 2021-02-19 12:48:20 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-02-19 12:48:20 +0000 |
commit | 31bef885acc348e527b2bfe31587b321464451f7 (patch) | |
tree | f8aec0b401333fdbfeb1ba3bd2d821c612d1d274 /media-libs | |
parent | sci-libs/qrupdate: workaround gcc 10 (fortran) failure (diff) | |
download | gentoo-31bef885acc348e527b2bfe31587b321464451f7.tar.gz gentoo-31bef885acc348e527b2bfe31587b321464451f7.tar.bz2 gentoo-31bef885acc348e527b2bfe31587b321464451f7.zip |
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 <sam@gentoo.org>
Diffstat (limited to 'media-libs')
-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") |