From: Clemens Buchacher <drizzd@aon.at>
To: Hallvard Breien Furuseth <h.b.furuseth@usit.uio.no>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: make install rewrites source files
Date: Thu, 26 Jan 2012 23:52:31 +0100 [thread overview]
Message-ID: <20120126225231.GA14753@ecki> (raw)
In-Reply-To: <hbf.20120123j61g@bombur.uio.no>
On Mon, Jan 23, 2012 at 09:57:51PM +0100, Hallvard Breien Furuseth wrote:
>
> 'profile-all' makes 'all' with different CFLAGS from those in
> Makefile.
How about removing the profile-all target and making it a build option
instead? To enable it, do the usual:
echo PROFILE_BUILD=YesPlease >> config.mak
echo prefix=... >> config.mak
make
su make install
In the Makefile, we would have
ifdef PROFILE_BUILD
all:
$(MAKE) CFLAGS=... -fprofile-generate ... all-one
$(MAKE) CFLAGS=... -fprofile-use ... all-one
else
all: all-one
endif
and each previous instance of 'all' replaced with 'all-one'.
Clemens
next prev parent reply other threads:[~2012-01-26 23:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-23 14:18 make install rewrites source files Hallvard Breien Furuseth
2012-01-23 20:15 ` Junio C Hamano
2012-01-23 20:57 ` Hallvard Breien Furuseth
2012-01-26 22:52 ` Clemens Buchacher [this message]
2012-01-27 0:49 ` Junio C Hamano
2012-01-27 13:11 ` Hallvard Breien Furuseth
2012-01-23 20:28 ` Phillip Susi
2012-01-23 20:52 ` Junio C Hamano
2012-01-27 9:46 ` Hallvard B Furuseth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120126225231.GA14753@ecki \
--to=drizzd@aon.at \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=h.b.furuseth@usit.uio.no \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.