Source: aeolus
Version: 0.9.5-1
Tags: patch upstream
User: helm...@debian.org
Usertags: rebootstrap

aeolus fails to cross build from source, because the upstream Makefile
hard codes the build architecture compiler g++. After making it
substitutable, aeolus cross builds successfully. Please consider
applying the attached patch.

Helmut
--- aeolus-0.9.5.orig/source/Makefile
+++ aeolus-0.9.5/source/Makefile
@@ -34,7 +34,7 @@
 aeolus:	LDLIBS += -lzita-alsa-pcmi -lclthreads -ljack -lasound -lpthread -ldl -lrt
 aeolus: LDFLAGS += -L$(PREFIX)/$(LIBDIR)
 aeolus:	$(AEOLUS_O)
-	g++ $(LDFLAGS) -o $@ $(AEOLUS_O) $(LDLIBS)
+	$(CXX) $(LDFLAGS) -o $@ $(AEOLUS_O) $(LDLIBS)
 
 addsynth.o:	CPPFLAGS += -fpic -D_REENTRANT
 $(AEOLUS_O):
@@ -48,7 +48,7 @@
 aeolus_x11.so:	LDLIBS += -lclthreads -lclxclient -lpthread -lXft -lX11
 aeolus_x11.so:	LDFLAGS += -shared -L$(PREFIX)/$(LIBDIR) -L/usr/X11R6/$(LIBDIR)
 aeolus_x11.so: $(XIFACE_O) $(LIBCLX)
-	g++ $(LDFLAGS) -o $@ $(XIFACE_O) $(LDLIBS)
+	$(CXX) $(LDFLAGS) -o $@ $(XIFACE_O) $(LDLIBS)
 
 $(XIFACE_O):
 -include $(XIFACE_O:%.o=%.d)
@@ -60,7 +60,7 @@
 aeolus_txt.so:	LDLIBS += -lclthreads -lpthread -lreadline
 aeolus_txt.so:	LDFLAGS += -shared -L$(PREFIX)/$(LIBDIR)
 aeolus_txt.so: $(TIFACE_O)
-	g++ $(LDFLAGS) -o $@ $(TIFACE_O) $(LDLIBS)
+	$(CXX) $(LDFLAGS) -o $@ $(TIFACE_O) $(LDLIBS)
 
 $(TIFACE_O):
 -include $(TIFACE_O:%.o=%.d)

Reply via email to