Bug 175117 - dev-libs/libusb-0.1.12-r1 always compiles c++ bindings, even when nocxx is set.
Bug#: 175117 Product:  Gentoo Linux Version: 2006.1 Platform: All
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: robbat2@gentoo.org Reported By: oliver@schinagl.nl
Component: Applications
URL: 
Summary: dev-libs/libusb-0.1.12-r1 always compiles c++ bindings, even when nocxx is set.
Keywords:  
Status Whiteboard: 
Opened: 2007-04-18 15:54 0000
Description:   Opened: 2007-04-18 15:54 0000
libusb has special c++ bindings (yuk) in usbcpp.cpp. However when building for
an embedded/c++ less system this causes failures and what not.

Ideally the configure script should check for c++ support and then simply not
build c++ bindings if we don't need them anyway, based on the nocxx flag.

An intermediate solution would be to require/depend on the nocxx flag to be
unset. Filing bug upstream aswell.

Reproducible: Always

Steps to Reproduce:

------- Comment #1 From Mike Auty 2007-04-18 16:46:50 0000 -------
I've added liquidx to the cc list as he's mentioned as a co-maintainer of
libusb in the metadata...  5:)

------- Comment #2 From Robin Johnson 2007-05-11 09:50:47 0000 -------
please include a patch for the configure stuff that you want changed.

------- Comment #3 From Andy Dustman 2007-05-24 16:57:28 0000 -------
The "failures and what not" are some assembler errors about "unknown psuedo-op:
.weakref". I have found upgrading binutils from 2.16.1-r3 to 2.17 corrects the
issue.

------- Comment #4 From Robin Johnson 2008-06-07 00:59:16 0000 -------
Resolved in -r3.