Source: clxclient Version: 3.9.0-3 Tags: patch User: helm...@debian.org Usertags: rebootstrap
clxclient fails to cross build from source, because it hardcodes a g++ invocation into its Makefile. That happens to call the build architecture compiler for linking host architecture objects. Replacing g++ with $(CXX) is sufficient for making cross builds succeed. Please consider applying the attached patch. Helmut
diff --minimal -Nru clxclient-3.9.0/debian/changelog clxclient-3.9.0/debian/changelog --- clxclient-3.9.0/debian/changelog 2016-12-03 20:15:02.000000000 +0100 +++ clxclient-3.9.0/debian/changelog 2017-01-28 22:36:17.000000000 +0100 @@ -1,3 +1,10 @@ +clxclient (3.9.0-3.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: makefile-03.patch: Make C++ compiler overridable (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sat, 28 Jan 2017 22:36:17 +0100 + clxclient (3.9.0-3) unstable; urgency=medium * Update copyright. diff --minimal -Nru clxclient-3.9.0/debian/patches/makefile-03.patch clxclient-3.9.0/debian/patches/makefile-03.patch --- clxclient-3.9.0/debian/patches/makefile-03.patch 1970-01-01 01:00:00.000000000 +0100 +++ clxclient-3.9.0/debian/patches/makefile-03.patch 2017-01-28 22:36:14.000000000 +0100 @@ -0,0 +1,16 @@ +Description: make C++ compiler overridable for cross compilation +Author: Helmut Grohne <hel...@subdivi.de> + +Index: clxclient-3.9.0/Makefile +=================================================================== +--- clxclient-3.9.0.orig/Makefile ++++ clxclient-3.9.0/Makefile +@@ -46,7 +46,7 @@ + + + $(CLXCLIENT_MIN): $(CLXCLIENT_O) +- g++ -shared $(LDFLAGS) -Wl,-soname,$(CLXCLIENT_MAJ) -o $(CLXCLIENT_MIN) $(CLXCLIENT_O) $(CLXCLIENT_DEP) ++ $(CXX) -shared $(LDFLAGS) -Wl,-soname,$(CLXCLIENT_MAJ) -o $(CLXCLIENT_MIN) $(CLXCLIENT_O) $(CLXCLIENT_DEP) + + + install: $(CLXCLIENT_MIN) diff --minimal -Nru clxclient-3.9.0/debian/patches/series clxclient-3.9.0/debian/patches/series --- clxclient-3.9.0/debian/patches/series 2016-12-03 20:13:29.000000000 +0100 +++ clxclient-3.9.0/debian/patches/series 2017-01-28 22:35:26.000000000 +0100 @@ -1,2 +1,3 @@ makefile-01.patch makefile-02.patch +makefile-03.patch
_______________________________________________ pkg-multimedia-maintainers mailing list pkg-multimedia-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers