From 6170985a08931afd273685efd02abd94a52385e6 Mon Sep 17 00:00:00 2001 From: Charles Oliveira <18oliveira.charles@gmail.com> Date: Wed, 24 Feb 2016 12:47:32 -0500 Subject: [PATCH] Added LDADD = -lm to avoid linking references to libmath errors --- 01.w_Defects/Makefile.am | 1 + 02.wo_Defects/Makefile.am | 1 + 2 files changed, 2 insertions(+) diff --git a/01.w_Defects/Makefile.am b/01.w_Defects/Makefile.am index 4399e94..8b553d9 100644 --- a/01.w_Defects/Makefile.am +++ b/01.w_Defects/Makefile.am @@ -1,6 +1,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/include AM_CFLAGS = -pthread AM_LDFLAGS = -lm +LDADD = -lm bin_PROGRAMS = 01_w_Defects 01_w_Defects_SOURCES = \ HeaderFile.h \ diff --git a/02.wo_Defects/Makefile.am b/02.wo_Defects/Makefile.am index ae07312..699e24a 100644 --- a/02.wo_Defects/Makefile.am +++ b/02.wo_Defects/Makefile.am @@ -1,6 +1,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/include AM_CFLAGS = -pthread AM_LDFLAGS = -lm +LDADD = -lm bin_PROGRAMS = 02_wo_Defects 02_wo_Defects_SOURCES = \ bit_shift.c lock_never_unlock.c \