diff options
author | Roland McGrath <roland@gnu.org> | 1996-01-17 02:11:06 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1996-01-17 02:11:06 +0000 |
commit | d99d7e264430e26e9070b4908a6e81103aa92747 (patch) | |
tree | a3d4fffbbf8472e9780804ce998a1de9efb01a58 /gmon/Makefile | |
parent | 7176f4e4b5ffc9765f3a43c53bc2f96cc3909700 (diff) | |
download | glibc-d99d7e264430e26e9070b4908a6e81103aa92747.tar glibc-d99d7e264430e26e9070b4908a6e81103aa92747.tar.gz glibc-d99d7e264430e26e9070b4908a6e81103aa92747.tar.bz2 glibc-d99d7e264430e26e9070b4908a6e81103aa92747.zip |
* gmon/Makefile (CFLAGS-mcount.c): New variable.
(mcount.po): New target.
* Makeconfig (CFLAGS): Append $(CFLAGS-$(<F)).
Diffstat (limited to 'gmon/Makefile')
-rw-r--r-- | gmon/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gmon/Makefile b/gmon/Makefile index 3bd4201b72..e44e3c75af 100644 --- a/gmon/Makefile +++ b/gmon/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 1995 Free Software Foundation, Inc. +# Copyright (C) 1995, 1996 Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or @@ -26,3 +26,12 @@ headers := sys/gmon.h machine-gmon.h routines := gmon mcount profil include ../Rules + +# The mcount code won't work without a frame pointer. +CFLAGS-mcount.c := -fno-omit-frame-pointer + +# We cannot compile mcount.c with -pg because that would +# create resursive calls. Just copy the normal static object. +$(objpfx)mcount.po: $(objpfx)mcount.o + rm -f $@ + ln $< $@ |