From: vagrant@debian.org
To: 72881@debbugs.gnu.org
Cc: vagrant@debian.org
Subject: [bug#72881] [PATCH 3/3] gnu: lcrq: Add compiler optimizations.
Date: Thu, 29 Aug 2024 14:39:20 -0700 [thread overview]
Message-ID: <20240829213920.386565-3-vagrant@debian.org> (raw)
In-Reply-To: <20240829213920.386565-1-vagrant@debian.org>
From: Vagrant Cascadian <vagrant@debian.org>
* gnu/packages/networking.scm (lcrq)[arguments]: Pass compiler optimizations
to configure. [phases]: Add 'speedtest phase.
---
gnu/packages/networking.scm | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 161cd7cb13..e78126b341 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -289,9 +289,20 @@ (define-public lcrq
(arguments
(list
#:parallel-tests? #f
+ ;; Use recommended optimizations from lcrq README.md
+ #:configure-flags
+ #~(list (string-append "CFLAGS=-Wall -Wextra -pedantic -O3 -flto "
+ "-funroll-loops -ffast-math -DNDEBUG"))
#:make-flags
#~(list (string-append "CC=" #$(cc-for-target))
(string-append "PREFIX=" #$output))
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; Leave some speed comparisons in the build log
+ (add-after 'check 'speedtest
+ (lambda _
+ (invoke "make" "-C" "test" "speedtest"
+ (string-append "CC=" #$(cc-for-target))))))
#:test-target "test"))
(home-page "https://librecast.net/lcrq.html")
(synopsis "Librecast RaptorQ library")
--
2.39.2
next prev parent reply other threads:[~2024-08-29 21:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-29 21:35 [bug#72881] lcrq and lcsync updates Vagrant Cascadian
2024-08-29 21:39 ` [bug#72881] [PATCH 1/3] gnu: lcrq: Update to 0.2.1 vagrant
2024-08-29 21:39 ` [bug#72881] [PATCH 2/3] gnu: lcsync: Update to 0.3.1 vagrant
2024-08-29 21:39 ` vagrant [this message]
2024-09-06 21:12 ` bug#72881: lcrq and lcsync updates Vagrant Cascadian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240829213920.386565-3-vagrant@debian.org \
--to=vagrant@debian.org \
--cc=72881@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.