diff --git a/makefile b/makefile index 6a0540a2ffa..b5ccc213d29 100644 --- a/makefile +++ b/makefile @@ -506,7 +506,7 @@ CCOMFLAGS += -pipe # add -g if we need symbols, and ensure we have frame pointers ifdef SYMBOLS -CCOMFLAGS += -g$(SYMLEVEL) -fno-omit-frame-pointer +CCOMFLAGS += -g$(SYMLEVEL) -fno-omit-frame-pointer -fno-optimize-sibling-calls endif # add -v if we need verbose build information diff --git a/src/osd/windows/vconv.c b/src/osd/windows/vconv.c index dc6234624ac..7ebaa6f9813 100644 --- a/src/osd/windows/vconv.c +++ b/src/osd/windows/vconv.c @@ -98,6 +98,7 @@ static const translation_info gcc_translate[] = { 0, "-x", "" }, { 0, "c++", "" }, { 0, "-flto", "/GL" }, + { 0, "-fno-optimize-sibling-calls", "" }, { 0 } };