summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicha Mutschler <micha@etezian.org>2013-06-30 22:07:08 +0200
committerAndi Shyti <andi@etezian.org>2013-07-01 02:11:01 +0200
commit697c78cd628f9d4241bef1c88ae0aa86fa31216b (patch)
tree4137c7ae673184a8997aba9837b06cadd2d064ec
parent4968ac965b1a69b914681c171bc4acdb49e9a7c0 (diff)
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 <micha@etezian.org> Acked-by: Andi Shyti <andi@etezian.org>
-rw-r--r--Makefile6
1 files 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/