diff options
author | Adam Pimentel <adam.pimentel@protonmail.com> | 2022-12-25 16:31:23 -0500 |
---|---|---|
committer | Adam Pimentel <adam.pimentel@protonmail.com> | 2022-12-25 16:31:23 -0500 |
commit | 3a7aea9dfccabfca58a173e752ab136e52457b1f (patch) | |
tree | b4458592688badd8bc075778e893f65bd90b5494 /net-p2p/p2pool | |
parent | net-p2p/feather: add some extra includes for monero (diff) | |
download | guru-3a7aea9dfccabfca58a173e752ab136e52457b1f.tar.gz guru-3a7aea9dfccabfca58a173e752ab136e52457b1f.tar.bz2 guru-3a7aea9dfccabfca58a173e752ab136e52457b1f.zip |
net-p2p/p2pool: stop build script from overriding users CFLAGS and CXXFLAGS
Closes: https://bugs.gentoo.org/887903
Closes: https://bugs.gentoo.org/887905
Signed-off-by: Adam Pimentel <adam.pimentel@protonmail.com>
Diffstat (limited to 'net-p2p/p2pool')
-rw-r--r-- | net-p2p/p2pool/files/flags.cmake | 14 | ||||
-rw-r--r-- | net-p2p/p2pool/p2pool-2.6-r1.ebuild | 5 |
2 files changed, 17 insertions, 2 deletions
diff --git a/net-p2p/p2pool/files/flags.cmake b/net-p2p/p2pool/files/flags.cmake new file mode 100644 index 000000000..ed7e75499 --- /dev/null +++ b/net-p2p/p2pool/files/flags.cmake @@ -0,0 +1,14 @@ +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_CXX_EXTENSIONS OFF) +set(CMAKE_CXX_STANDARD 14) + +set(CMAKE_C_STANDARD 99) +set(CMAKE_C_STANDARD_REQUIRED ON) + +set(GENERAL_FLAGS "-pthread") + +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GENERAL_FLAGS}") +set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${GENERAL_FLAGS}") + +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GENERAL_FLAGS}") +set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${GENERAL_FLAGS}") diff --git a/net-p2p/p2pool/p2pool-2.6-r1.ebuild b/net-p2p/p2pool/p2pool-2.6-r1.ebuild index 5b1d81a5e..960bce71a 100644 --- a/net-p2p/p2pool/p2pool-2.6-r1.ebuild +++ b/net-p2p/p2pool/p2pool-2.6-r1.ebuild @@ -69,8 +69,9 @@ src_unpack() { src_prepare() { default - # 884447: remove -s from OPTIMIZATION_FLAGS - sed -i 's/-s\>//' cmake/flags.cmake || die + # Stop their script from overriding flags: + cp "${FILESDIR}"/flags.cmake cmake/flags.cmake || die + die cmake_src_prepare } |