diff options
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules index 8cc6558dcb..5556684d5b 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -337,6 +337,12 @@ ifndef REQUIRES_EH CXX.Flags += -fno-exceptions endif +ifdef REQUIRES_FRAME_POINTER + CXX.Flags := $(filter-out -fomit-frame-pointer,$(CXX.Flags)) + C.Flags := $(filter-out -fomit-frame-pointer,$(C.Flags)) + LD.Flags := $(filter-out -fomit-frame-pointer,$(LD.Flags)) +endif + # IF REQUIRES_RTTI=1 is specified then don't disable run-time type id ifndef REQUIRES_RTTI # CXX.Flags += -fno-rtti |