From 4e60d5dfb40ba604db114384469b8ebb2014efe3 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Thu, 29 Aug 2024 14:29:16 -0700 Subject: gnu: lcrq: Add compiler optimizations. * 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(+) (limited to 'gnu') diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 880a6b3011..956fef80dc 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") -- cgit v1.2.3