From: Horst H. von Brand Date: Tue, 6 Feb 2007 19:08:55 +0000 (-0300) Subject: Call make always with CFLAGS in git.spec X-Git-Tag: v1.5.0-rc4~16 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0b2958a8b431b8c7f27bc34fdbe400cb204ede06;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/git.spec.in b/git.spec.in index fb95e3759..1213325e5 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 {} ';'