Fix so that non-Darwin OSs use USB_LIBS correctly for linking
authorMichael Dickens <mdickens@nd.edu>
Thu, 16 Sep 2010 20:58:22 +0000 (16:58 -0400)
committerJohnathan Corgan <jcorgan@corganenterprises.com>
Wed, 6 Oct 2010 19:03:33 +0000 (12:03 -0700)
config/usrp_libusb.m4

index a0d3425081305309606782844f712916d615014b..588a958e0e55da0bb4ea5f59c78c37b9bf8f4234 100644 (file)
@@ -107,14 +107,13 @@ AC_DEFUN([USRP_LIBUSB], [
 
         AC_LANG_PUSH(C)
         save_LIBS="$LIBS"
-        LIBS=""
         case "$host_os" in
           darwin*)
             USB_LIBS="$USB_LIBS -lIOKit"
-            LIBS="$USB_LIBS"
             ;;
           *) ;;
         esac
+        LIBS="$USB_LIBS"
 
        dnl find the library link name
         usb_lib_name=`echo $USB_LIBS | sed -e "s@.*-l\(usb[[^ ]]*\).*@\1@"`