* [gentoo-commits] repo/gentoo:master commit in: media-libs/libilbc/files/
@ 2021-02-19 12:49 Sam James
0 siblings, 0 replies; only message in thread
From: Sam James @ 2021-02-19 12:49 UTC (permalink / raw
To: gentoo-commits
commit: 31bef885acc348e527b2bfe31587b321464451f7
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 19 12:48:20 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Feb 19 12:48:20 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31bef885
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 <AT> gentoo.org>
.../files/libilbc-3.0.4-respect-CFLAGS.patch | 25 ++++++++++++++++++++++
1 file changed, 25 insertions(+)
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 00000000000..feb3a2255e1
--- /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")
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-19 12:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-19 12:49 [gentoo-commits] repo/gentoo:master commit in: media-libs/libilbc/files/ Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox