Clear warning when linking x52test_log_actions

Prior to this change, we were linking the log_actions program against
the stub library, since we needed to use the logging capabilities in the
stub library to save the expected values to a file for the test harness
to use. However, doing so gives us the following warning:

*** Warning: Linking the executable x52test_log_actions against the loadable module
*** libusbx52.so is not portable!

Since we don't really need to have dynamic linking in this case, simply
including the stub library source into the log_actions program sources
list is sufficient, and bypasses this warning.
pull/22/head
nirenjan 2020-06-02 07:50:51 -07:00
parent a43cbc83a5
commit 7ae5cad0cc
1 changed files with 1 additions and 2 deletions

View File

@ -24,8 +24,7 @@ check_PROGRAMS = x52test_create_device_list x52test_log_actions
x52test_create_device_list_SOURCES = util/create_device_list.c
x52test_create_device_list_CFLAGS = @LIBUSB_CFLAGS@
x52test_log_actions_SOURCES = util/log_actions.c
x52test_log_actions_SOURCES = util/log_actions.c usb_x52_stub.c
x52test_log_actions_CFLAGS = @X52_INCLUDE@ @LIBUSB_CFLAGS@
x52test_log_actions_LDADD = libusbx52.la
EXTRA_DIST = README.md libusbx52.h