diff options
Diffstat (limited to 'libc/sysdeps/linux/common/Makefile')
-rw-r--r-- | libc/sysdeps/linux/common/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/Makefile b/libc/sysdeps/linux/common/Makefile index 5b9717f2b..d51fc4281 100644 --- a/libc/sysdeps/linux/common/Makefile +++ b/libc/sysdeps/linux/common/Makefile @@ -29,6 +29,9 @@ CSRC= waitpid.c getdnnm.c gethstnm.c getcwd.c ptrace.c \ ifneq ($(strip $(EXCLUDE_BRK)),y) CSRC+=sbrk.c endif +ifeq ($(strip $(UCLIBC_PROFILING)),y) +CSRC+=gmon.c +endif COBJS=$(patsubst %.c,%.o, $(CSRC)) MSRC=syscalls.c @@ -44,6 +47,9 @@ SAFECFLAGS := $(subst -g,,$(SAFECFLAGS)) ifeq ($(strip $(DOPIC)),y) SAFECFLAGS+=-fPIC endif +ifeq ($(strip $(UCLIBC_PROFILING)),y) +SAFECFLAGS+=-DGMON_SUPPORT +endif OBJ=$(COBJS) $(MOBJ) |