Source: vpb-driver
Version: 4.2.59-2
Tags: upstream patch
User: [email protected]
Usertags: rebootstrap

vpb-driver fails to cross build from source, because it puts -lpthread
into a Makefile dependency. GNU make resolves that to a full path and
uses the build architecture to to so. Thus it ends up passing the build
architecture pthread.so to the host architecture compiler invocation and
fails. Handing that flag via a make variable fixes the cross build.
Please consider applying the attached patch.

Helmut
diff -u vpb-driver-4.2.59/debian/changelog vpb-driver-4.2.59/debian/changelog
--- vpb-driver-4.2.59/debian/changelog
+++ vpb-driver-4.2.59/debian/changelog
@@ -1,3 +1,10 @@
+vpb-driver (4.2.59-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Do not put -lfoo into Makefile dependencies. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Sat, 01 Jul 2017 09:53:23 +0200
+
 vpb-driver (4.2.59-2) unstable; urgency=medium
 
   * Conflict/Replace libvpb0.  Closes: #794587
only in patch2:
unchanged:
--- vpb-driver-4.2.59.orig/src/libtoneg/Makefile.in
+++ vpb-driver-4.2.59/src/libtoneg/Makefile.in
@@ -34,10 +34,10 @@
 
 ifneq ($(HOST_OS),billware)
 $(LIB_VERSION): CPPFLAGS += -fPIC
-$(LIB_VERSION): -lpthread
+$(LIB_VERSION): LINK_PTHREAD = -lpthread
 endif
 $(LIB_VERSION): $(LIB_OBJ)
-       $(CXX) $(LDFLAGS) -shared -o $@ -Wl,-soname,$(LIB_SONAME) $^
+       $(CXX) $(LDFLAGS) -shared -o $@ -Wl,-soname,$(LIB_SONAME) $^ 
$(LINK_PTHREAD)
 
 $(LIB_SONAME): $(LIB_VERSION)
        ln -sf $^ $@

Reply via email to