summaryrefslogtreecommitdiff
path: root/dev-cpp/safeint
diff options
context:
space:
mode:
Diffstat (limited to 'dev-cpp/safeint')
-rw-r--r--dev-cpp/safeint/files/safeint-3.0.28a-strip-O3.patch28
-rw-r--r--dev-cpp/safeint/metadata.xml2
-rw-r--r--dev-cpp/safeint/safeint-3.0.28a.ebuild1
3 files changed, 30 insertions, 1 deletions
diff --git a/dev-cpp/safeint/files/safeint-3.0.28a-strip-O3.patch b/dev-cpp/safeint/files/safeint-3.0.28a-strip-O3.patch
new file mode 100644
index 000000000000..610dac56b944
--- /dev/null
+++ b/dev-cpp/safeint/files/safeint-3.0.28a-strip-O3.patch
@@ -0,0 +1,28 @@
+From: Pavel Sobolev <contact@paveloom.dev>
+Subject: [PATCH] Strip `-O3`.
+
+Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
+
+--- a/Test/ClangTest/CMakeLists.txt
++++ b/Test/ClangTest/CMakeLists.txt
+@@ -26,7 +26,7 @@ else()
+ set(CMAKE_CXX_COMPILER ${CLANG_PLUS_PLUS})
+
+ # the standard level is already at C++11, which is what we need for runtime tests
+- add_compile_options(-O3 -ftrapv)
++ add_compile_options(-ftrapv)
+
+ # Note - the test matrix here is as follows:
+ # int128 is available (best case)
+--- a/Test/GccTest/CMakeLists.txt
++++ b/Test/GccTest/CMakeLists.txt
+@@ -31,7 +31,7 @@ else()
+ message(STATUS "g++ available, configuring g++ tests")
+ set(CMAKE_CXX_COMPILER ${GCC_PLUS_PLUS})
+ # the standard level is already at C++11, which is what we need for runtime tests
+- add_compile_options(-O3 -ftrapv)
++ add_compile_options(-ftrapv)
+
+ # Note - -fsanitize=undefined isn't currently working with g++ and cmake
+ # if you go build from the old makefile in Test/GccTest, it does work
+
diff --git a/dev-cpp/safeint/metadata.xml b/dev-cpp/safeint/metadata.xml
index 8282ea84a406..fadef070bf50 100644
--- a/dev-cpp/safeint/metadata.xml
+++ b/dev-cpp/safeint/metadata.xml
@@ -8,5 +8,5 @@
<upstream>
<bugs-to>https://github.com/dcleblanc/SafeInt/issues</bugs-to>
</upstream>
- <origin>gentoo-guru-overlay</origin>
+ <origin>liguros-repo</origin>
</pkgmetadata> \ No newline at end of file
diff --git a/dev-cpp/safeint/safeint-3.0.28a.ebuild b/dev-cpp/safeint/safeint-3.0.28a.ebuild
index e260a6393e92..2f7f31d769ea 100644
--- a/dev-cpp/safeint/safeint-3.0.28a.ebuild
+++ b/dev-cpp/safeint/safeint-3.0.28a.ebuild
@@ -21,6 +21,7 @@ PATCHES=(
"${FILESDIR}/${PN}-3.0.28a-install-the-library.patch"
"${FILESDIR}/${PN}-3.0.28a-make-tests-optional.patch"
"${FILESDIR}/${PN}-3.0.28a-remove-broken-tests.patch"
+ "${FILESDIR}/${PN}-3.0.28a-strip-O3.patch"
)
src_configure() {