mc_nextgen_test: Link against argp library
PATCH 1/1 mc_nextgen_test: Link against argp library
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....
--- contrib/test/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
contrib/test/Makefile.am +1 -1
@@ -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
Signature · 1 line
2.26.2