From b46414d507f3a339ff3c8db2941a2c9b0aea9810 Mon Sep 17 00:00:00 2001 From: Verdi R-D Date: Sat, 21 May 2016 20:16:17 -0400 Subject: [PATCH] Fixed issue caused by no link to std math library ``` gcc -lstdc++ obj/main.o obj/parser.o obj/pcb-probe.o -o pcb-probe /usr/bin/ld: obj/pcb-probe.o: undefined reference to symbol 'ceill@@GLIBC_2.2.5' /usr/lib/libm.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:33: recipe for target 'pcb-probe' failed make: *** [pcb-probe] Error 1 ``` --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cb11e08..63213ba 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ INCLUDES=-I$(shell pwd)/include CPPFLAGS=$(INCLUDES) -DVERSION="\"$(VERSION)\"" -DDEFAULT_GCODE_TYPE=emc LD=gcc -LIBS=-lstdc++ +LIBS=-lstdc++ -lm LDFLAGS=$(LIBS) SRCDIR=src