summaryrefslogtreecommitdiff
path: root/git.spec.in
diff options
context:
space:
mode:
authorHorst H. von Brand <vonbrand@inf.utfsm.cl>2007-02-06 16:08:55 -0300
committerJunio C Hamano <junkio@cox.net>2007-02-06 14:09:03 -0800
commit0b2958a8b431b8c7f27bc34fdbe400cb204ede06 (patch)
tree88faa75cc2fa43666fb8245b480a8cccdb7651fe /git.spec.in
parent4ef40cdbe8661586053acbde34c8f89883b6f94a (diff)
downloadgit-0b2958a8b431b8c7f27bc34fdbe400cb204ede06.tar.gz
Call make always with CFLAGS in git.spec
If not, the binaries get built once with the correct CFLAGS, and then again with the ones in the Makefile when installing Signed-off-by: Horst H. von Brand <vonbrand@inf.utfsm.cl> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git.spec.in')
-rw-r--r--git.spec.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/git.spec.in b/git.spec.in
index fb95e37594..1213325e57 100644
--- a/git.spec.in
+++ b/git.spec.in
@@ -89,7 +89,8 @@ make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" WITH_OWN_SUBPROCESS_PY=YesPlease \
%install
rm -rf $RPM_BUILD_ROOT
-make %{_smp_mflags} DESTDIR=$RPM_BUILD_ROOT WITH_OWN_SUBPROCESS_PY=YesPlease \
+make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" DESTDIR=$RPM_BUILD_ROOT \
+ WITH_OWN_SUBPROCESS_PY=YesPlease \
prefix=%{_prefix} mandir=%{_mandir} INSTALLDIRS=vendor \
install %{!?_without_docs: install-doc}
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'