threads / patch / 6712

patchCall make always with CFLAGS in git.spec

Subject: [PATCH] Call make always with CFLAGS in git.spec

## tl;dr

One message between Feb 6, 2007 and Feb 6, 2007. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Horst H. von Brand· Feb 6, 2007, 19:08 UTC · lore

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>
---
 git.spec.in |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Show changes to git.spec.in +2 −1
diff --git a/git.spec.in b/git.spec.in
index fb95e37..1213325 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 {} ';'
-- 
1.5.0.rc3

← back to recent threads