Re: usbutils for Mac OS X and Cygwin

2012-10-16 Thread Xiaofan Chen
On Wed, Oct 17, 2012 at 12:17 AM, Greg Kroah-Hartman wrote: > On Tue, Oct 16, 2012 at 10:08:48AM -0400, Alan Stern wrote: >> On Tue, 16 Oct 2012, Greg Kroah-Hartman wrote: >> >> > > mymacmini:usbutils xiaofanc$ git diff >> > > diff --git a/Makefile.am b/Makefile.am >> > > index 4e53e45..e8cb002 10

Re: usbutils for Mac OS X and Cygwin

2012-10-16 Thread Xiaofan Chen
On Wed, Oct 17, 2012 at 12:14 AM, Greg Kroah-Hartman wrote: >> > Might it just be easier to patch usbutils to be something like >> > USB_IDS_DATADIR instead when building on these systems? >> > >> >> Good idea. Here is the patch based on your suggestion and >> it works fine. > > > > That's nice,

Re: usbutils for Mac OS X and Cygwin

2012-10-16 Thread Greg Kroah-Hartman
On Tue, Oct 16, 2012 at 10:08:48AM -0400, Alan Stern wrote: > On Tue, 16 Oct 2012, Greg Kroah-Hartman wrote: > > > > mymacmini:usbutils xiaofanc$ git diff > > > diff --git a/Makefile.am b/Makefile.am > > > index 4e53e45..e8cb002 100644 > > > --- a/Makefile.am > > > +++ b/Makefile.am > > > @@ -1,8

Re: usbutils for Mac OS X and Cygwin

2012-10-16 Thread Greg Kroah-Hartman
On Tue, Oct 16, 2012 at 09:15:43PM +0800, Xiaofan Chen wrote: > On Tue, Oct 16, 2012 at 3:07 PM, Greg Kroah-Hartman > wrote: > > On Tue, Oct 16, 2012 at 09:57:16AM +0800, Xiaofan Chen wrote: > >> Now usbutils git almost builds successfully out of the box under > >> Mac OS Xand Cygwin (using libusb

Re: [Libusbx-devel] usbutils for Mac OS X and Cygwin

2012-10-16 Thread Sean McBride
On Tue, 16 Oct 2012 21:01:28 +0800, Xiaofan Chen said: >> I didn't think Apple used gcc anymore. How about testing to see if this >> is a valid option before trying to use it instead of just removing it? > >Apple calls its compiler gcc. But yes it is llvm based. Apple used to use gcc, or rather

Re: usbutils for Mac OS X and Cygwin

2012-10-16 Thread Alan Stern
On Tue, 16 Oct 2012, Greg Kroah-Hartman wrote: > > mymacmini:usbutils xiaofanc$ git diff > > diff --git a/Makefile.am b/Makefile.am > > index 4e53e45..e8cb002 100644 > > --- a/Makefile.am > > +++ b/Makefile.am > > @@ -1,8 +1,7 @@ > > SUBDIRS = \ > > usbhid-dump > > > > -AM_LDFLAGS = \ >

Re: usbutils for Mac OS X and Cygwin

2012-10-16 Thread Xiaofan Chen
On Tue, Oct 16, 2012 at 9:15 PM, Xiaofan Chen wrote: > On Tue, Oct 16, 2012 at 3:07 PM, Greg Kroah-Hartman > wrote: >> On Tue, Oct 16, 2012 at 09:57:16AM +0800, Xiaofan Chen wrote: >>> Now usbutils git almost builds successfully out of the box under >>> Mac OS Xand Cygwin (using libusbx). Just wo

Re: usbutils for Mac OS X and Cygwin

2012-10-16 Thread Xiaofan Chen
On Tue, Oct 16, 2012 at 3:07 PM, Greg Kroah-Hartman wrote: > On Tue, Oct 16, 2012 at 09:57:16AM +0800, Xiaofan Chen wrote: >> Now usbutils git almost builds successfully out of the box under >> Mac OS Xand Cygwin (using libusbx). Just wondering if you can >> accept the minor fix for Mac OS X and s

Re: usbutils for Mac OS X and Cygwin

2012-10-16 Thread Xiaofan Chen
On Tue, Oct 16, 2012 at 3:07 PM, Greg Kroah-Hartman wrote: > On Tue, Oct 16, 2012 at 09:57:16AM +0800, Xiaofan Chen wrote: >> I only need one fix for Mac OS X as Apple's gcc compiler does >> not like --as-needed. > > I didn't think Apple used gcc anymore. How about testing to see if this > is a v

Re: usbutils for Mac OS X and Cygwin

2012-10-16 Thread Greg Kroah-Hartman
On Tue, Oct 16, 2012 at 09:57:16AM +0800, Xiaofan Chen wrote: > Hi Greg, > > Sorry the previous email goes to the wrong linux kernel list. > > Now usbutils git almost builds successfully out of the box under > Mac OS Xand Cygwin (using libusbx). Just wondering if you can > accept the minor fix fo

Re: usbutils for Mac OS X and Cygwin

2012-10-15 Thread Xiaofan Chen
Hi Greg, Sorry the previous email goes to the wrong linux kernel list. Now usbutils git almost builds successfully out of the box under Mac OS Xand Cygwin (using libusbx). Just wondering if you can accept the minor fix for Mac OS X and suggest a way to fix cygwin build. For Cygwin, there is a co