[packages/dnsmasq] pass CC and CFLAGS/LDFLAGS to install too; rel 2
atler
atler at pld-linux.org
Tue May 13 20:15:42 CEST 2025
commit 972831cecb14e5f96581d57d92e585d93504a5cd
Author: Jan Palus <atler at pld-linux.org>
Date: Tue May 13 19:58:48 2025 +0200
pass CC and CFLAGS/LDFLAGS to install too; rel 2
dnsmasq has its own simple cc/flags dependency system based on md5 sum
and rebuilds binary on install if they differ
dnsmasq.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/dnsmasq.spec b/dnsmasq.spec
index 16f5a96..7a6598c 100644
--- a/dnsmasq.spec
+++ b/dnsmasq.spec
@@ -12,7 +12,7 @@ Summary: A lightweight caching server (DNS, DHCP)
Summary(pl.UTF-8): Lekki buforujący serwer nazw (DNS) i DHCP
Name: dnsmasq
Version: 2.91
-Release: 1
+Release: 2
License: GPL v2
Group: Networking/Daemons
# TODO: http://thekelleys.org.uk/dnsmasq/%{name}-%{version}.tar.xz
@@ -100,6 +100,9 @@ install %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/dnsmasq.service
install -p trust-anchors.conf $RPM_BUILD_ROOT%{_datadir}/dnsmasq
%{__make} install-i18n \
+ CC="%{__cc}" \
+ CFLAGS="%{rpmcppflags} %{rpmcflags} -DHAVE_ISC_READER" \
+ LDFLAGS="%{rpmldflags}" \
COPTS="%{copts}" \
DESTDIR=$RPM_BUILD_ROOT \
PREFIX=%{_prefix}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/dnsmasq.git/commitdiff/972831cecb14e5f96581d57d92e585d93504a5cd
More information about the pld-cvs-commit
mailing list