Pass LDLIBS to the linker
authorRyan Kavanagh <rak@debian.org>
Thu, 27 Jul 2023 18:59:47 +0000 (20:59 +0200)
committerSebastian Ramacher <sramacher@debian.org>
Sun, 9 Jun 2024 21:45:17 +0000 (23:45 +0200)
Origin: Debian
Bug-Debian: http://bugs.debian.org/935678
Forwarded: no
Reviewed-by: Ryan Kavanagh <rak@debian.org>
Last-Update: 2019-09-07

Needed to pass -latomic at the end so that we can fix a FTBFS on various
architectures.
Last-Update: 2019-09-07

Gbp-Pq: Name 0001-atomic_ld.patch

Makefile

index 494418236c0dc2b6ae7212888b51cb05bc54649b..cb766efd1cc19ecb5b446233c98df514ac420586 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ FFMPEG_CFLAGS += $(shell pkg-config --cflags libswresample)
 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)\"