]> git.pld-linux.org Git - packages/acpica.git/commitdiff
- perl is not a part of minimal builder instalation, BR: sed >= 4.0 instead
authorsparky <sparky@pld-linux.org>
Tue, 24 Nov 2009 19:01:57 +0000 (19:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- rpmldflags

Changed files:
    acpica.spec -> 1.9

acpica.spec

index 839b4177c91a0e4f606ff0abbd1c6415b35e82ce..146eb33b8399e951947dfb9fc72038b5c3a8ef2e 100644 (file)
@@ -10,6 +10,7 @@ Source0:      http://acpica.org/download/%{name}-unix-%{version}.tar.gz
 URL:           http://acpica.org/
 BuildRequires: bison
 BuildRequires: flex
+BuildRequires: sed >= 4.0
 Provides:      iasl
 Obsoletes:     iasl
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -25,13 +26,17 @@ tablic DSDT.
 %prep
 %setup -q -n %{name}-unix-%version
 
-find . -name Makefile |xargs perl -pi -e "s,-O2,%{rpmcflags},g"
+sed 's/-O2/$(OPTCFLAGS)/g' -i tools/acpisrc/Makefile compiler/Makefile
 
 %build
 %{__make} -C tools/acpisrc \
-       CC="%{__cc}"
+       CC="%{__cc}" \
+       OPTCFLAGS="%{rpmcflags}" \
+       LDFLAGS="%{rpmcflags} %{rpmldflags}"
 %{__make} -j1 -C compiler \
-       CC="%{__cc}"
+       CC="%{__cc}" \
+       OPTCFLAGS="%{rpmcflags}" \
+       LDFLAGS="%{rpmcflags} %{rpmldflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.036742 seconds and 4 git commands to generate.