Bug#923263: mazeofglious FTCBFS: upstream Makefile hard codes build architecture compiler
Source: mazeofgalious
Version: 0.62.dfsg2-5
Tags: patch upstream
User: helmutg@debian.org
Usertags: rebootstrap
mazeofgalious fails to cross build from source, because the upstream
Makefile hard codes the build architecture compiler. After making
compiler invocations substitutable, mazeofgalious cross builds
successfully, because dh_auto_build substitutes cross compilers. Please
consider applying the attached patch.
Helmut
--- mazeofgalious-0.62.dfsg2.orig/Makefile
+++ mazeofgalious-0.62.dfsg2/Makefile
@@ -7,15 +7,15 @@
all: mog
%.o: %.cpp
- c++ -c $(CFLAGS) $(CPPFLAGS) $< -o $@ `sdl-config --cflags`
+ $(CXX) -c $(CFLAGS) $(CPPFLAGS) $< -o $@ `sdl-config --cflags`
# dynamically linked binary:
mog: $(OBJS)
- c++ $^ -o $@ $(LDFLAGS) `sdl-config --libs` -lSDL_image -lSDL_mixer -lSDL_sound -lSDL_sound
+ $(CXX) $^ -o $@ $(LDFLAGS) `sdl-config --libs` -lSDL_image -lSDL_mixer -lSDL_sound -lSDL_sound
# static binary:
mogs: $(OBJS)
- c++ -static $^ -o $@ -lSDL_image -lSDL_mixer -lSDL_sound -lpng -ljpeg -lz `sdl-config --static-libs`
+ $(CXX) -static $^ -o $@ -lSDL_image -lSDL_mixer -lSDL_sound -lpng -ljpeg -lz `sdl-config --static-libs`
clean:
rm -f mog mogs
Reply to: