From 83f424343f4aacb5a8006ebcaf76af067ef173a7 Mon Sep 17 00:00:00 2001 From: Erik Auerswald Date: Sun, 16 Mar 2014 17:31:35 +0000 Subject: [PATCH] Added -lm to LDLIBS. The ssocr code itself uses math.h and thus libm. This library has been linked to via recursive linking or the requirements of Imlib2 before this commit. According to a report from Arne Wichmann this does not work in all environments. While I do not know the exact circumstances under which this problem occurs, adding -lm to the linker step is correct, because ssocr uses it. It is incorrect to rely on Imlib2 to pull this in. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0fb2dbc..45d2778 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ CFLAGS := -D_FORTIFY_SOURCE=2 -Wall -W -Wextra -pedantic -Werror -pedantic-errors $(shell imlib2-config --cflags) -O3 -LDLIBS := $(shell imlib2-config --libs) +LDLIBS := -lm $(shell imlib2-config --libs) PREFIX := /usr/local BINDIR := $(PREFIX)/bin MANDIR := $(PREFIX)/share/man/man1