void-packages/srcpkgs/cmus/patches/pass-ldlibs.patch

25 lines
984 B
Diff

Description: Pass LDLIBS to the linker
Needed to pass -latomic at the end so that we can fix a FTBFS on various
architectures.
Author: Ryan Kavanagh <rak@debian.org>
Origin: Debian
Bug-Debian: http://bugs.debian.org/935678
Forwarded: no
Reviewed-by: Ryan Kavanagh <rak@debian.org>
Last-Update: 2019-09-07
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: cmus/Makefile
===================================================================
--- a/Makefile 2019-09-07 10:02:00.152453147 -0400
+++ b/Makefile 2019-09-07 10:24:55.009937454 -0400
@@ -22,7 +22,7 @@
FFMPEG_LIBS += $(shell pkg-config --libs libswresample)
CMUS_LIBS = $(PTHREAD_LIBS) $(NCURSES_LIBS) $(ICONV_LIBS) $(DL_LIBS) $(DISCID_LIBS) \
- -lm $(COMPAT_LIBS) $(LIBSYSTEMD_LIBS)
+ -lm $(COMPAT_LIBS) $(LIBSYSTEMD_LIBS) $(LDLIBS)
command_mode.o input.o main.o ui_curses.o op/pulse.lo: .version
command_mode.o input.o main.o ui_curses.o op/pulse.lo: CFLAGS += -DVERSION=\"$(VERSION)\"