clamav: provide a cargo config with the usual profile.release

hopefully this helps build on sparc64 which looks like it ran out of memory
This commit is contained in:
sthen 2022-05-31 21:38:29 +00:00
parent 26b2b0fe63
commit 9f226b461b
2 changed files with 18 additions and 0 deletions

View File

@ -1,5 +1,6 @@
COMMENT= virus scanner
DISTNAME= clamav-0.105.0
REVISION= 0
CATEGORIES= security

View File

@ -0,0 +1,17 @@
Index: libclamav_rust/.cargo/config.toml
--- libclamav_rust/.cargo/config.toml.orig
+++ libclamav_rust/.cargo/config.toml
@@ -5,3 +5,13 @@ replace-with = "vendored-sources"
[source.vendored-sources]
directory = ".cargo/vendor"
+[profile.release]
+opt-level = 2
+debug = 0
+debug-assertions = false
+overflow-checks = false
+lto = false
+panic = 'unwind'
+incremental = false
+codegen-units = 4
+rpath = false