mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 06:10:50 +00:00
Fix for building profiled programs.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@2890 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7d4d032d73
commit
61d4758ce1
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Jul 31 21:20:00 1998 Richard Frith-Macdonald <richard@brainstrom.co.uk>
|
||||
|
||||
*common.make: Modified to set LDFLAGS to use '-pg' when compiling
|
||||
with 'profile=yes' and LD == CC
|
||||
|
||||
Fri Jul 31 15:08:25 1998 Richard Frith-Macdonald <richard@brainstrom.co.uk>
|
||||
|
||||
*brain.make: Fixed to use the command-line specification of
|
||||
|
|
|
@ -249,6 +249,9 @@ endif
|
|||
|
||||
ifeq ($(profile), yes)
|
||||
ADDITIONAL_FLAGS += -pg
|
||||
ifeq ($(LD), $(CC))
|
||||
LDFLAGS = -pg -o
|
||||
endif
|
||||
OBJ_DIR_PREFIX += profile_
|
||||
LIBRARY_NAME_SUFFIX := p$(LIBRARY_NAME_SUFFIX)
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue