mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2025-07-13 21:05:11 +02:00
lib: don't detach kernel driver by default
Since this feature also disconnects running instances of librtlsdr that claimed the device, it is now disabled by default and can only be enabled at compile time. To enable it when building with cmake: cmake . -DDETACH_KERNEL_DRIVER=ON To enable it when building with automake: ./configure --enable-driver-detach Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
@ -64,6 +64,12 @@ AC_TRY_COMPILE([],[],
|
||||
AC_MSG_RESULT(no)
|
||||
CFLAGS="$old_CFLAGS")
|
||||
|
||||
AC_ARG_ENABLE(driver-detach,
|
||||
[ --enable-driver-detach Enable detaching of kernel driver (disabled by default)],
|
||||
[if test x$enableval = xyes; then
|
||||
CFLAGS="$CFLAGS -DDETACH_KERNEL_DRIVER"
|
||||
fi])
|
||||
|
||||
dnl Generate the output
|
||||
AC_CONFIG_HEADER(config.h)
|
||||
|
||||
|
Reference in New Issue
Block a user