@matheusbsbs / matheus-bagliano / commits / 0b2958a8b4
Fork 0

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>

Horst H. von Brand committed Feb 6, 2007 at 16:08 UTC 0b2958a8b431b8c7f27bc34fdbe400cb204ede06
1 file changed +2 -1
git.spec.in
+2 -1
@@ -89,7 +89,8 @@ make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" WITH_OWN_SUBPROCESS_PY=YesPlease \
89
90 %install
91 rm -rf $RPM_BUILD_ROOT
92 -make %{_smp_mflags} DESTDIR=$RPM_BUILD_ROOT WITH_OWN_SUBPROCESS_PY=YesPlease \
92 +make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" DESTDIR=$RPM_BUILD_ROOT \
93 + WITH_OWN_SUBPROCESS_PY=YesPlease \
94 prefix=%{_prefix} mandir=%{_mandir} INSTALLDIRS=vendor \
95 install %{!?_without_docs: install-doc}
96 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'