summaryrefslogtreecommitdiff
path: root/extra/gcc-uClibc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'extra/gcc-uClibc/Makefile')
-rw-r--r--extra/gcc-uClibc/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/extra/gcc-uClibc/Makefile b/extra/gcc-uClibc/Makefile
index 523b10113..e312d1792 100644
--- a/extra/gcc-uClibc/Makefile
+++ b/extra/gcc-uClibc/Makefile
@@ -36,6 +36,11 @@ else
endif
ifeq ($(strip $(UCLIBC_CTOR_DTOR)),y)
@echo "#define __UCLIBC_CTOR_DTOR__ 1" >> gcc-uClibc.h
+ifeq ($(strip $(UCLIBC_PROFILING)),y)
+ @echo "#define __UCLIBC_PROFILING__ 1" >> gcc-uClibc.h
+else
+ @echo "#undef __UCLIBC_PROFILING__" >> gcc-uClibc.h
+endif
else
@echo "#undef __UCLIBC_CTOR_DTOR__" >> gcc-uClibc.h
endif