[packages/jitterentropy] - more flags (warnings and -fwrapv not to rely on its presence in rpm optflags)

qboosh qboosh at pld-linux.org
Sat May 8 10:48:21 CEST 2021


commit ae0c36da98897abc1528c3347968fd57f98c9885
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat May 8 10:50:32 2021 +0200

    - more flags (warnings and -fwrapv not to rely on its presence in rpm optflags)

 jitterentropy.spec | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/jitterentropy.spec b/jitterentropy.spec
index 8ea02b4..b95b93d 100644
--- a/jitterentropy.spec
+++ b/jitterentropy.spec
@@ -54,10 +54,12 @@ Statyczna biblioteka jitterentropy.
 %setup -q -n %{name}-library-%{version}
 
 %build
-export LDFLAGS="%{rpmldflags} -lpthread"
+# NOTE: jitterentropy-base.c must be compiled with optimizations disabled
+LDFLAGS="%{rpmldflags}" \
 %{__make} \
 	CC="%{__cc}" \
-	CFLAGS="%{rpmcppflags} %{rpmcflags} -fPIC -O0"
+	CFLAGS="%{rpmcppflags} %{rpmcflags} -fPIC -O0 -fwrapv -Wall -Wextra" \
+	LIBRARIES="rt pthread"
 
 %install
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/jitterentropy.git/commitdiff/ae0c36da98897abc1528c3347968fd57f98c9885



More information about the pld-cvs-commit mailing list