summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--unix/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/unix/Makefile b/unix/Makefile
index ffc3391a14..6c89d06579 100644
--- a/unix/Makefile
+++ b/unix/Makefile
@@ -71,6 +71,10 @@ SRC_C = \
modos.c \
$(SRC_MOD)
+# Without -fomit-frame-pointer, DEBUG builds fail since the code tries
+# to manipulate the frame pointer register
+$(BUILD)/gccollect.o: CFLAGS += -fomit-frame-pointer
+
ifeq ($(UNAME_S),Darwin)
# Must be the last file in list of sources
SRC_C += seg_helpers.c