git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Horst H. von Brand <vonbrand@inf.utfsm.cl>
Date
Feb 6, 2007, 19:08 UTC
Message-ID
<11707889352302-git-send-email-vonbrand@inf.utfsm.cl>

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(-)
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
Message 1 of 1 in “Call make always with CFLAGS in git.spec”
  1. Call make always with CFLAGS in git.specHorst H. von Brand, Feb 6, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.