1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
Description: Add -lm to fix ftbfs with binutils-gold
Author: Angel Abad <angelabad@ubuntu.com>
Bug-Ubuntu: https://launchpad.net/bugs/771117
--- a/src/makefile
+++ b/src/makefile
@@ -99,7 +99,7 @@ CFLAGS=$(OPTS) $(GCCFLAGS) \
$(if $(NE_ANSI), -DTERMCAP -DANSI,)
-LIBS=$(if $(NE_TERMCAP)$(NE_ANSI),,-lcurses)
+LIBS=$(if $(NE_TERMCAP)$(NE_ANSI),,-lcurses -lm)
ne: $(OBJS) $(if $(NE_TERMCAP)$(NE_ANSI),$(TERMCAPOBJS),)
$(CC) $(OPTS) $(LDFLAGS) $(if $(NE_TEST), -coverage,) $(if $(NE_DEBUG), -fsanitize=address -fsanitize=undefined,) $^ -lm $(LIBS) -o $(PROGRAM)
|