[packages/hostapd] fix build flags application; rel 2

atler atler at pld-linux.org
Sat Jan 22 09:24:57 CET 2022


commit 389389e6e93df9506dea243f54071e97037c3bf7
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Jan 22 09:24:18 2022 +0100

    fix build flags application; rel 2

 hostapd.spec | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/hostapd.spec b/hostapd.spec
index f24a54e..e495077 100644
--- a/hostapd.spec
+++ b/hostapd.spec
@@ -7,7 +7,7 @@ Summary(es.UTF-8):	HostAP - actúa como un punto de acceso
 Summary(pl.UTF-8):	HostAP - praca jako access point
 Name:		hostapd
 Version:	2.10
-Release:	1
+Release:	2
 License:	BSD
 Group:		Daemons
 Source0:	https://w1.fi/releases/%{name}-%{version}.tar.gz
@@ -68,14 +68,12 @@ IBSS.
 %patch0 -p1
 %patch1 -p1
 
-%{__sed} '/CFLAGS =/{s/-g//; s/-O2/$(OPTCFLAGS)/}' -i hostapd/Makefile
-
 %build
+CFLAGS="%{rpmcflags} %{rpmcppflags}" \
+LDFLAGS="%{rpmldflags}" \
 %{__make} -C hostapd all nt_password_hash hlr_auc_gw \
 	V=1 \
 	CC="%{__cc}" \
-	OPTCFLAGS="%{rpmcflags} %{rpmcppflags}" \
-	LDFLAGS="%{rpmcflags} %{rpmldflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/hostapd.git/commitdiff/389389e6e93df9506dea243f54071e97037c3bf7



More information about the pld-cvs-commit mailing list