gnu: lcrq: Add compiler optimizations.

* gnu/packages/networking.scm (lcrq)[arguments]: Pass compiler optimizations
to configure. [phases]: Add 'speedtest phase.
This commit is contained in:
Vagrant Cascadian 2024-08-29 14:29:16 -07:00
parent 695eb1e41c
commit 4e60d5dfb4
No known key found for this signature in database
GPG key ID: DC518FC87F9716AA

View file

@ -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")