mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 22:16:32 +01:00
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:
parent
695eb1e41c
commit
4e60d5dfb4
1 changed files with 11 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue