From ed93d90c516399778456bbd2bc11ece03ba9fafc Mon Sep 17 00:00:00 2001 From: Godzil Date: Tue, 11 Feb 2020 00:29:34 +0000 Subject: [PATCH] Make sure we are not forcing to GCC and add a bit of debug. CMake find the proper lib but not the makefile? WTF --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 04afaee..75ca5c4 100644 --- a/Makefile +++ b/Makefile @@ -16,12 +16,13 @@ OBJS = $(wonderswan_CXX_SRCS:.cpp=.o) all: wonderswan dumpinfo -CXX = g++ +# CXX = g++ CXXFLAGS = -g -O2 `sdl-config --cflags` -Wall -Werror -std=c++98 -Wno-write-strings -Wno-unused-result OPTIONS = -D_REENTRANT -I. -DVERSION=\"`git describe --tags --long --dirty`\" LIBRARY_PATH = -LIBS = -g $(LIBRARY_PATH) `sdl-config --libs` +SDL_LIBS = `sdl-config --libs` +LIBS = -g $(LIBRARY_PATH) $(SDL_LIBS) ALLCFLAGS = $(CFLAGS) $(CEXTRA) $(OPTIONS) $(ALLFLAGS) ALLCXXFLAGS=$(CXXFLAGS) $(CXXEXTRA) $(OPTIONS) $(ALLFLAGS) @@ -53,4 +54,5 @@ dumpinfo: dumpinfo.o $(CXX) $(LIBS) -o $@ $(<) wonderswan: $(OBJS) + @echo "SDL Libs>> $(SDL_LIBS)" $(CXX) $(LIBS) -o $@ $(OBJS)