Source: sdl-ball Version: 1.02-2 Tags: patch upstream User: helm...@debian.org Usertags: rebootstrap
sdl-ball fails to cross build from source, because the upstream Makefile uses CC to store a C++ compiler. dh_auto_build substitutes a C compiler and that fails. After making it use CXX, sdl-ball cross builds successfully. Please consider applying the attached patch. Helmut
--- sdl-ball-1.02.orig/Makefile +++ sdl-ball-1.02/Makefile @@ -2,7 +2,8 @@ #append -DWITH_WIIUSE to compile with WIIUSE support! #append -DNOSOUND to compile WITHOUT sound support -CC=g++ -DDATADIR="\"$(DATADIR)\"" +CXX=g++ +CFLAGS+=-DDATADIR="\"$(DATADIR)\"" CFLAGS+=-c -Wall `sdl-config --cflags` @@ -18,10 +19,10 @@ all: $(SOURCES) $(EXECUTABLE) $(EXECUTABLE): $(OBJECTS) - $(CC) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@ + $(CXX) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@ .cpp.o: - $(CC) $(CPPFLAGS) $(CFLAGS) $< -o $@ + $(CXX) $(CPPFLAGS) $(CFLAGS) $< -o $@ clean: rm -f *.o sdl-ball