From eabb90395fd43a2dd7ce8138cec454c95cd4bee4 Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Mon, 1 Feb 2016 14:18:46 -0500 Subject: [PATCH] Makefile.am: Put linker flags in the right variables. I'm not entirely sure how this is compiling elsewhere, but the dahdi_cfg build fails on Ubuntu 14.04 because -lm is not in the correct spot on the command line. This patch puts -lm into LDADD and changes -lpthread to -pthread. Signed-off-by: Sean Bright --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index cfd561b..2ba94bb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -93,8 +93,8 @@ dahdi_tool_CFLAGS = $(CFLAGS) $(NEWT_INCLUDE) dahdi_tool_LDADD = $(NEWT_LIB) endif -dahdi_cfg_LDFLAGS = -lm -lpthread -dahdi_cfg_LDADD = libtonezone.la +dahdi_cfg_LDFLAGS = -pthread +dahdi_cfg_LDADD = libtonezone.la -lm udevrulesdir = @udevrulesdir@ udevrules_DATA = dahdi.rules -- 1.9.1