diff options
author | John Helmert III <ajak@gentoo.org> | 2021-10-24 14:41:17 -0500 |
---|---|---|
committer | John Helmert III <ajak@gentoo.org> | 2021-10-24 14:43:13 -0500 |
commit | 0a6bd8ae8510c70ce30b5381c27c89c73a8325f5 (patch) | |
tree | a0f22086405f172347c4558b591bbc03e22d8b7d /net-analyzer/sshping | |
parent | dev-ruby/http-cookie: Stabilize 1.0.4 sparc, #819963 (diff) | |
download | gentoo-0a6bd8ae8510c70ce30b5381c27c89c73a8325f5.tar.gz gentoo-0a6bd8ae8510c70ce30b5381c27c89c73a8325f5.tar.bz2 gentoo-0a6bd8ae8510c70ce30b5381c27c89c73a8325f5.zip |
net-analyzer/sshping: respect cxxflags
Closes: https://bugs.gentoo.org/820068
Signed-off-by: John Helmert III <ajak@gentoo.org>
Diffstat (limited to 'net-analyzer/sshping')
-rw-r--r-- | net-analyzer/sshping/files/sshping-0.1.4-respect-cxxflags.patch | 13 | ||||
-rw-r--r-- | net-analyzer/sshping/sshping-0.1.4.ebuild | 6 |
2 files changed, 18 insertions, 1 deletions
diff --git a/net-analyzer/sshping/files/sshping-0.1.4-respect-cxxflags.patch b/net-analyzer/sshping/files/sshping-0.1.4-respect-cxxflags.patch new file mode 100644 index 000000000000..9f2f905aded6 --- /dev/null +++ b/net-analyzer/sshping/files/sshping-0.1.4-respect-cxxflags.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index e8a7d0b..00ade1c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 2.8) + #find_package(libssh) + + # Build the sshping binary +-set(CMAKE_CXX_FLAGS "-I ${CMAKE_CURRENT_SOURCE_DIR}/ext/ -Wall") ++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I ${CMAKE_CURRENT_SOURCE_DIR}/ext/") + add_executable(${PROJECT_NAME} src/sshping.cxx) + target_link_libraries(${PROJECT_NAME} ssh) + install(TARGETS ${PROJECT_NAME} DESTINATION bin) diff --git a/net-analyzer/sshping/sshping-0.1.4.ebuild b/net-analyzer/sshping/sshping-0.1.4.ebuild index 86789a0acf0d..b6898c56a36b 100644 --- a/net-analyzer/sshping/sshping-0.1.4.ebuild +++ b/net-analyzer/sshping/sshping-0.1.4.ebuild @@ -17,11 +17,15 @@ BDEPEND="dev-lang/perl" DEPEND="net-libs/libssh:=" RDEPEND="${DEPEND}" -PATCHES=( "${FILESDIR}/${P}-fix-man-dir.patch" ) +PATCHES=( + "${FILESDIR}/${P}-fix-man-dir.patch" + "${FILESDIR}/${P}-respect-cxxflags.patch" +) src_configure() { local mycmakeargs=( -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr" + -DCMAKE_CXX_FLAGS="${CXXFLAGS}" ) cmake_src_configure |