]> git.gag.com Git - debian/gnuradio/blobdiff - config/usrp_libusb.m4
Fix so that non-Darwin OSs use USB_LIBS correctly for linking
[debian/gnuradio] / 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@"`