Linux: Tweak makefile to try to fix dev builds not getting optimized

This commit is contained in:
Sour 2023-02-20 17:57:48 -05:00
parent 7f2a4dc9dc
commit a8644c133d
2 changed files with 4 additions and 4 deletions

View file

@ -37,7 +37,7 @@ public:
virtual ~AviRecorder();
bool Init(string filename) override;
bool StartRecording(uint32_t width, uint32_t height, uint32_t bpp, uint32_t audioSampleRate, double fps);
bool StartRecording(uint32_t width, uint32_t height, uint32_t bpp, uint32_t audioSampleRate, double fps) override;
void StopRecording() override;
bool AddFrame(void* frameBuffer, uint32_t width, uint32_t height, double fps) override;

View file

@ -21,9 +21,6 @@ endif
SDL2LIB := $(shell sdl2-config --libs)
SDL2INC := $(shell sdl2-config --cflags)
CXXFLAGS = -fPIC -Wall --std=c++17 $(MESENFLAGS) $(SDL2INC) -I $(realpath ./) -I $(realpath ./Core) -I $(realpath ./Utilities) -I $(realpath ./Linux)
CFLAGS = -fPIC -Wall $(MESENFLAGS)
LINKCHECKUNRESOLVED := -Wl,-z,defs
LINKOPTIONS :=
@ -96,6 +93,9 @@ ifneq ($(STATICLINK),false)
LINKOPTIONS += -static-libgcc -static-libstdc++
endif
CXXFLAGS = -fPIC -Wall --std=c++17 $(MESENFLAGS) $(SDL2INC) -I $(realpath ./) -I $(realpath ./Core) -I $(realpath ./Utilities) -I $(realpath ./Linux)
CFLAGS = -fPIC -Wall $(MESENFLAGS)
OBJFOLDER := obj.$(MESENPLATFORM)
RELEASEFOLDER := bin/$(MESENPLATFORM)/Release