Otherwise the build fails on systems where the argp library is standalone and not part of the C library itself (e.g. systems using the musl libc + argp-standalone): /usr/x86_64-pc-linux-musl/bin/armv7-unknown-linux-musleabihf-ld: mc_nextgen_test-mc_nextgen_test.o: in function `parse_opt': mc_nextgen_test.c:(.text+0x1dc): undefined reference to `argp_state_help' /usr/x86_64-pc-linux-musl/bin/armv7-unknown-linux-musleabihf-ld: mc_nextgen_test.c:(.text+0x2e8): undefined reference to `argp_state_help' /usr/x86_64-pc-linux-musl/bin/armv7-unknown-linux-musleabihf-ld: mc_nextgen_test-mc_nextgen_test.o: in function `main': mc_nextgen_test.c:(.text.startup+0x30): undefined reference to `argp_parse' collect2: error: ld returned 1 exit status make[3]: *** [Makefile:570: mc_nextgen_test] Error 1 make[3]: *** Waiting for unfinished jobs.... Signed-off-by: Marvin Schmidt <marvin.schmidt1987@xxxxxxxxx> --- contrib/test/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/test/Makefile.am b/contrib/test/Makefile.am index ded3c1f4..55e4ba09 100644 --- a/contrib/test/Makefile.am +++ b/contrib/test/Makefile.am @@ -42,7 +42,7 @@ sdlcam_CFLAGS = -I../.. $(SDL2_CFLAGS) sdlcam_LDADD = ../../lib/libv4l2/libv4l2.la ../../lib/libv4lconvert/libv4lconvert.la mc_nextgen_test_CFLAGS = $(LIBUDEV_CFLAGS) -mc_nextgen_test_LDFLAGS = $(LIBUDEV_LIBS) +mc_nextgen_test_LDFLAGS = $(ARGP_LIBS) $(LIBUDEV_LIBS) ioctl_test_SOURCES = ioctl-test.c ioctl-test.h ioctl_32.h ioctl_64.h -- 2.26.2