mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-10 20:18:41 -04:00
media-sound/loudgain: respect build flags provided by portage
Closes: https://bugs.gentoo.org/952032 Signed-off-by: YOSHIOKA Takuma <lo48576@hard-wi.red>
This commit is contained in:
parent
430e631529
commit
b012271f48
@ -1,31 +0,0 @@
|
||||
https://github.com/Moonbase59/loudgain/pull/37
|
||||
From 31fc71b9970f22a116a9ad7eae66dc9cc66a54c1 Mon Sep 17 00:00:00 2001
|
||||
From: Peter Oliver <git@mavit.org.uk>
|
||||
Date: Sun, 18 Oct 2020 00:51:52 +0100
|
||||
Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20override=20CFLAGS=20and=20CXXFL?=
|
||||
=?UTF-8?q?AGS=20env=20variables?=
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
This is necessary, for example, to build with the [hardened build flags](https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/master/f/buildflags.md#hardened-builds) used by default for Fedora.
|
||||
---
|
||||
CMakeLists.txt | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 9487ab9..eb030e2 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -72,9 +72,9 @@ SET_TARGET_PROPERTIES(loudgain PROPERTIES
|
||||
COMPILE_FLAGS "-Wall -pedantic -g"
|
||||
)
|
||||
|
||||
-SET(CMAKE_C_FLAGS "-std=gnu99 -D_GNU_SOURCE")
|
||||
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -D_GNU_SOURCE")
|
||||
|
||||
-SET(CMAKE_CXX_FLAGS "-std=gnu++11 -D_GNU_SOURCE")
|
||||
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11 -D_GNU_SOURCE")
|
||||
|
||||
INSTALL(TARGETS loudgain DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
|
||||
|
@ -0,0 +1,22 @@
|
||||
Respect CFLAGS and CXXFLAGS provided by the package manager.
|
||||
https://bugs.gentoo.org/952032
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 9487ab98a594..a8e1bed7a527 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -68,14 +68,6 @@ TARGET_LINK_LIBRARIES(loudgain
|
||||
${LTAG_LIBRARIES}
|
||||
)
|
||||
|
||||
-SET_TARGET_PROPERTIES(loudgain PROPERTIES
|
||||
- COMPILE_FLAGS "-Wall -pedantic -g"
|
||||
-)
|
||||
-
|
||||
-SET(CMAKE_C_FLAGS "-std=gnu99 -D_GNU_SOURCE")
|
||||
-
|
||||
-SET(CMAKE_CXX_FLAGS "-std=gnu++11 -D_GNU_SOURCE")
|
||||
-
|
||||
INSTALL(TARGETS loudgain DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
|
||||
|
||||
INSTALL(FILES
|
@ -28,11 +28,11 @@ DEPEND="${COMMON_DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/loudgain-0.6.8-github-pr34-manpage.patch"
|
||||
"${FILESDIR}/loudgain-0.6.8-github-pr37-respect-build-flags.patch"
|
||||
"${FILESDIR}/loudgain-0.6.8-github-pr50-ffmpeg6.patch"
|
||||
"${FILESDIR}/loudgain-0.6.8-github-pr53-print-taglib-version.patch"
|
||||
"${FILESDIR}/loudgain-0.6.8-github-pr65-ffmpeg6-gcc14.patch"
|
||||
"${FILESDIR}/loudgain-0.6.8-github-pr66-ffmpeg7.patch"
|
||||
"${FILESDIR}/loudgain-0.6.8-respect-build-flags.patch"
|
||||
)
|
||||
|
||||
src_install() {
|
Loading…
x
Reference in New Issue
Block a user