[packages/mdadm] Rel 2; don't overwrite CFLAGS (and -DUSE_PTHREADS) option
arekm
arekm at pld-linux.org
Sun Aug 23 17:56:07 CEST 2026
commit 8afd17347fd2382d60952ee823f1de19f027bc7f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Aug 23 17:55:56 2026 +0200
Rel 2; don't overwrite CFLAGS (and -DUSE_PTHREADS) option
mdadm.spec | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/mdadm.spec b/mdadm.spec
index 213110a..fb682b6 100644
--- a/mdadm.spec
+++ b/mdadm.spec
@@ -8,7 +8,7 @@ Summary: Tool for creating and maintaining software RAID devices
Summary(pl.UTF-8): Narzędzie do tworzenia i obsługi programowych macierzy RAID
Name: mdadm
Version: 4.6
-Release: 1
+Release: 2
License: GPL v2+
Group: Base
#Source0: https://www.kernel.org/pub/linux/utils/raid/mdadm/%{name}-%{version}.tar.xz
@@ -26,6 +26,7 @@ BuildRequires: dlm-devel
BuildRequires: groff
BuildRequires: rpmbuild(macros) >= 1.671
BuildRequires: tar >= 1:1.22
+BuildRequires: udev-devel
BuildRequires: xz
%if %{with initrd}
%if %{with dietlibc}
@@ -82,16 +83,18 @@ skonsolidowane na potrzeby initrd.
%else
%{__make} mdadm.static \
CC="%{__cc}" \
- CFLAGS="%{rpmcflags} %{rpmcppflags}" \
+ CXFLAGS="%{rpmcflags} %{rpmcppflags}" \
LDFLAGS="%{rpmldflags}"
%{__mv} mdadm.static initrd-mdadm
%endif
%{__make} clean
%endif
+# CXFLAGS, not CFLAGS: the Makefile builds CFLAGS itself and a command-line
+# override would drop -DUSE_PTHREADS, -DSendmail and the run/conf dir defines
%{__make} all mdadm mdadm.8 \
CC="%{__cc}" \
- CFLAGS="%{rpmcflags} %{rpmcppflags}" \
+ CXFLAGS="%{rpmcflags} %{rpmcppflags}" \
LDFLAGS="%{rpmldflags}" \
SYSCONFDIR="%{_sysconfdir}"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mdadm.git/commitdiff/8afd17347fd2382d60952ee823f1de19f027bc7f
More information about the pld-cvs-commit
mailing list