mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git
synced 2024-12-02 16:23:36 +08:00
build-sys: properly enable support for zlib in lsusb
Define HAVE_LIBZ to enable the code and append -lz to the linking line. Cc: Gabor Z. Papp <gzp@papp.hu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
1506bdecd5
commit
7170260942
@ -6,9 +6,6 @@ AM_LDFLAGS = \
|
||||
|
||||
data_DATA = \
|
||||
usb.ids
|
||||
if HAVE_ZLIB
|
||||
data_DATA += usb.ids.gz
|
||||
endif
|
||||
|
||||
bin_PROGRAMS = \
|
||||
lsusb
|
||||
@ -35,6 +32,12 @@ lsusb_CPPFLAGS = \
|
||||
lsusb_LDADD = \
|
||||
$(LIBUSB_LIBS)
|
||||
|
||||
if HAVE_ZLIB
|
||||
data_DATA += usb.ids.gz
|
||||
lsusb_CPPFLAGS += -DHAVE_LIBZ
|
||||
lsusb_LDADD += -lz
|
||||
endif
|
||||
|
||||
man_MANS = \
|
||||
lsusb.8 \
|
||||
usb-devices.1
|
||||
|
Loading…
Reference in New Issue
Block a user