From 697c78cd628f9d4241bef1c88ae0aa86fa31216b Mon Sep 17 00:00:00 2001 From: Micha Mutschler Date: Sun, 30 Jun 2013 22:07:08 +0200 Subject: Fix compile issues on Ubuntu 12.04 Recent gcc versions need the -lxxx options at the end of parameters Also changed libssl to libcrypto. That is the right SHA256() provider. Signed-off-by: Micha Mutschler Acked-by: Andi Shyti --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d961475..64af1d8 100644 --- a/Makefile +++ b/Makefile @@ -5,16 +5,16 @@ INC=-Iinclude/ -I/usr/include/mysql OPT_DBG=-g OPT_OPT=-O2 OPT=-Wall -DBIG_JOINS=1 -fno-strict-aliasing -LD=-lssl -L/usr/lib/x86_64-linux-gnu -lmysqlclient -lpthread -lm -lrt -ldl +LD=-lcrypto -L/usr/lib/x86_64-linux-gnu -lmysqlclient -lpthread -lm -lrt -ldl TARGET=accman ${TARGET}: $(shell mkdir -p bin) - ${CC} ${OPT} ${OPT_OPT} ${LD} ${INC} ${SRC} -o ${BINDIR}/${TARGET} + ${CC} ${OPT} ${OPT_OPT} ${INC} ${SRC} -o ${BINDIR}/${TARGET} ${LD} debug: $(shell mkdir -p bin) - ${CC} ${OPT} ${OPT_DBG} ${LD} ${INC} ${SRC} -o ${BINDIR}/${TARGET} + ${CC} ${OPT} ${OPT_DBG} ${INC} ${SRC} -o ${BINDIR}/${TARGET} ${LD} install: install bin/accman /usr/bin/ -- cgit v1.2.3