--- projects/unix/Makefile 2024-07-14 18:01:05.000000000 -0700 +++ projects/unix/Makefile 2024-09-09 20:28:23.981567000 -0700 @@ -152,7 +152,7 @@ OPTFLAGS ?= -O3 -flto WARNFLAGS ?= -Wall -Wno-unused-function CFLAGS += $(OPTFLAGS) $(WARNFLAGS) -ffast-math -fno-strict-aliasing -fvisibility=hidden -I$(SRCDIR) -I$(SRCDIR)/Glitch64/inc -DGCC -CXXFLAGS += -fvisibility-inlines-hidden -std=gnu++17 +CXXFLAGS += -fvisibility-inlines-hidden LDFLAGS += $(SHARED) ifeq ($(CPU), X86) @@ -222,6 +222,7 @@ endif ifeq ($(OS), FREEBSD) LDLIBS += -lc + CPPFLAGS += -DNO_FILTER_THREAD endif ifeq ($(OS), MINGW) ifeq ($(origin GLEW_CFLAGS) $(origin GLEW_LDLIBS), undefined undefined) @@ -285,7 +286,7 @@ ifeq ($(origin SDL_CFLAGS) $(origin SDL_LDLIBS), undefined undefined) SDL_CONFIG = $(CROSS_COMPILE)sdl2-config ifeq ($(shell which $(SDL_CONFIG) 2>/dev/null),) - SDL_CONFIG = $(CROSS_COMPILE)sdl-config + SDL_CONFIG = $(CROSS_COMPILE)/usr/local/bin/sdl2-config ifeq ($(shell which $(SDL_CONFIG) 2>/dev/null),) $(error No SDL development libraries found!) else @@ -337,8 +338,8 @@ endif # set base program pointers and flags -CC = $(CROSS_COMPILE)gcc -CXX = $(CROSS_COMPILE)g++ +CC ?= $(CROSS_COMPILE)cc +CXX ?= $(CROSS_COMPILE)c++ RM ?= rm -f INSTALL ?= install MKDIR ?= mkdir -p