diff options
author | Yiyang Wu <xgreenlandforwyy@gmail.com> | 2022-06-14 16:02:26 +0800 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2022-06-22 20:35:03 +0200 |
commit | 548d7270d6a895bcd7ce4af5bb6417e8508d2175 (patch) | |
tree | 044df70e4090a106a03b655585df4ec0e7ad19cd /dev-util/rocprofiler/files | |
parent | dev-python/lz4: Stabilize 4.0.1 arm, #853793 (diff) | |
download | gentoo-548d7270d6a895bcd7ce4af5bb6417e8508d2175.tar.gz gentoo-548d7270d6a895bcd7ce4af5bb6417e8508d2175.tar.bz2 gentoo-548d7270d6a895bcd7ce4af5bb6417e8508d2175.zip |
dev-util/rocprofiler: QA fixes
Closes: https://bugs.gentoo.org/851792
Closes: https://bugs.gentoo.org/851795
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'dev-util/rocprofiler/files')
-rw-r--r-- | dev-util/rocprofiler/files/rocprofiler-4.3.0-ldflag.patch | 13 | ||||
-rw-r--r-- | dev-util/rocprofiler/files/rocprofiler-4.3.0-nostrip.patch | 13 |
2 files changed, 26 insertions, 0 deletions
diff --git a/dev-util/rocprofiler/files/rocprofiler-4.3.0-ldflag.patch b/dev-util/rocprofiler/files/rocprofiler-4.3.0-ldflag.patch new file mode 100644 index 000000000000..dc097a568ca4 --- /dev/null +++ b/dev-util/rocprofiler/files/rocprofiler-4.3.0-ldflag.patch @@ -0,0 +1,13 @@ +Index: rocprofiler-rocm-5.0.2/cmake_modules/env.cmake +=================================================================== +--- rocprofiler-rocm-5.0.2.orig/cmake_modules/env.cmake ++++ rocprofiler-rocm-5.0.2/cmake_modules/env.cmake +@@ -51,7 +51,7 @@ set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS + #set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=int-in-bool-context" ) + set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC" ) + +-set ( CMAKE_SHARED_LINKER_FLAGS "-Wl,-Bdynamic -Wl,-z,noexecstack" ) ++set ( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-Bdynamic -Wl,-z,noexecstack" ) + + set ( CMAKE_SKIP_BUILD_RPATH TRUE ) + diff --git a/dev-util/rocprofiler/files/rocprofiler-4.3.0-nostrip.patch b/dev-util/rocprofiler/files/rocprofiler-4.3.0-nostrip.patch new file mode 100644 index 000000000000..3da3d99357f7 --- /dev/null +++ b/dev-util/rocprofiler/files/rocprofiler-4.3.0-nostrip.patch @@ -0,0 +1,13 @@ +Index: rocprofiler-rocm-5.0.2/cmake_modules/env.cmake +=================================================================== +--- rocprofiler-rocm-5.0.2.orig/cmake_modules/env.cmake ++++ rocprofiler-rocm-5.0.2/cmake_modules/env.cmake +@@ -92,8 +92,6 @@ string ( TOLOWER "${CMAKE_BUILD_TYPE}" C + if ( "${CMAKE_BUILD_TYPE}" STREQUAL debug ) + set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ggdb" ) + set ( CMAKE_BUILD_TYPE "debug" ) +-else () +- set ( CMAKE_BUILD_TYPE "release" ) + endif () + + ## Extend Compiler flags based on Processor architecture |