Quantcast

[PATCH] libusb-compat-0.1 examples: Link only with ../libusb/libusb.la and not with -lusb

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[PATCH] libusb-compat-0.1 examples: Link only with ../libusb/libusb.la and not with -lusb

Xiaofan Chen
commit e01ea627d1c5caac9492870b315353173e7b8a61
Author: Xiaofan Chen <[hidden email]>
Date:   Sun May 13 19:50:38 2012 +0800

        modified:   examples/Makefile.am
    This is similar to the following libusb-1.0 patch.
    http://git.libusb.org/?p=libusb.git;a=commitdiff;h=93b0e09d53ed1d177631af918

    Previous _LDFLAGS included both the freshly built libusb in ../libusb
    and -lusb, where libtool would usually resolve the latter to an
    already-installed libusb library in the system. The extra reference
    to a second libusb library may cause failures to build examples
    on some platforms and is wrong.

diff --git a/examples/Makefile.am b/examples/Makefile.am
index 3023b58..5292cef 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -2,8 +2,8 @@ INCLUDES = -I$(top_srcdir)/libusb
 noinst_PROGRAMS = lsusb testlibusb

 lsusb_SOURCES = lsusb.c
-lsusb_LDADD = ../libusb/libusb.la -lusb
+lsusb_LDADD = ../libusb/libusb.la

 testlibusb_SOURCES = testlibusb.c
-testlibusb_LDADD = ../libusb/libusb.la -lusb
+testlibusb_LDADD = ../libusb/libusb.la


--
Xiaofan

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libusb-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/libusb-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [PATCH] libusb-compat-0.1 examples: Link only with ../libusb/libusb.la and not with -lusb

Xiaofan Chen
On Sun, May 13, 2012 at 7:53 PM, Xiaofan Chen <[hidden email]> wrote:

> commit e01ea627d1c5caac9492870b315353173e7b8a61
> Author: Xiaofan Chen <[hidden email]>
> Date:   Sun May 13 19:50:38 2012 +0800
>
>        modified:   examples/Makefile.am
>    This is similar to the following libusb-1.0 patch.
>    http://git.libusb.org/?p=libusb.git;a=commitdiff;h=93b0e09d53ed1d177631af918
>
>    Previous _LDFLAGS included both the freshly built libusb in ../libusb
>    and -lusb, where libtool would usually resolve the latter to an
>    already-installed libusb library in the system. The extra reference
>    to a second libusb library may cause failures to build examples
>    on some platforms and is wrong.
>
> diff --git a/examples/Makefile.am b/examples/Makefile.am
> index 3023b58..5292cef 100644
> --- a/examples/Makefile.am
> +++ b/examples/Makefile.am
> @@ -2,8 +2,8 @@ INCLUDES = -I$(top_srcdir)/libusb
>  noinst_PROGRAMS = lsusb testlibusb
>
>  lsusb_SOURCES = lsusb.c
> -lsusb_LDADD = ../libusb/libusb.la -lusb
> +lsusb_LDADD = ../libusb/libusb.la
>
>  testlibusb_SOURCES = testlibusb.c
> -testlibusb_LDADD = ../libusb/libusb.la -lusb
> +testlibusb_LDADD = ../libusb/libusb.la

Ping...

--
Xiaofan

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libusb-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/libusb-devel
Loading...