Skip to content

Commit

Permalink
Improve librtlsdr.pc file
Browse files Browse the repository at this point in the history
librtlsdr.pc should declare -lusb-1.0 in Libs.private section
to exclude usb library from dynamic linking.
References to libusb headers are not needed in Cflags, since these
headers are not used by external rtlsdr API, but this is optional.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=784912
  • Loading branch information
maitbot authored and steve-m committed Feb 26, 2020
1 parent 1dff8e0 commit 222517b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions librtlsdr.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ includedir=@includedir@
Name: RTL-SDR Library
Description: C Utility Library
Version: @VERSION@
Cflags: -I${includedir}/ @RTLSDR_PC_CFLAGS@
Libs: -L${libdir} -lrtlsdr -lusb-1.0
Libs.private: @RTLSDR_PC_LIBS@
Cflags: -I${includedir}/
Libs: -L${libdir} -lrtlsdr
Libs.private: -lusb-1.0 @RTLSDR_PC_LIBS@

0 comments on commit 222517b

Please sign in to comment.