From d5015231cd4bf7825f33033f9e4a53591850498b Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 18 Oct 2024 16:21:00 -0300 Subject: queue.scm: Use -O2 over -O3 for scrypt For some reason that I didn't take the time to investigate and find out, using -O3 made the `testsmix(crypto_scrypt_smix)` condition [0] to fail, and ultimately lead to a broken library. I found this through trial and error, by tweaking the $(CFLAGS), since I knew the library itself was working with the default flags used by Guix. https://github.com/Tarsnap/scrypt/blob/6cec2c2d2c9198efe8a716599f02b99db4d8a993/lib-platform/crypto/crypto_scrypt.c#L231 --- src/org/euandre/queue.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/org/euandre/queue.scm b/src/org/euandre/queue.scm index aaf54b5..5fca464 100644 --- a/src/org/euandre/queue.scm +++ b/src/org/euandre/queue.scm @@ -1924,7 +1924,7 @@ SetEnv GIT_CONFIG_GLOBAL=/etc/gitconfig"))) "-D_POSIX_C_SOURCE=200809L" "-D_XOPEN_SOURCE=700" "-g" - "-O3" + "-O2" "-march=native" "-std=c99" "-Wvla" -- cgit v1.2.3