From e31e05d40557782c7ed2e534d0582e0d50146bdd Mon Sep 17 00:00:00 2001 From: Jeremy Tan Date: Mon, 2 Sep 2013 08:58:04 +0800 Subject: [PATCH] Fix linkage issues --- server/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/Makefile b/server/Makefile index f754c47..e8d0972 100644 --- a/server/Makefile +++ b/server/Makefile @@ -1,7 +1,7 @@ # Makefile for server software CXX = gcc FLAGS = -std=c99 -Wall -Werror -pedantic -g -LIB = -lpthread -lfcgi -lssl -lcrypto +LIB = -lfcgi -lssl -lcrypto -lpthread OBJ = log.o control.o sensor.o fastcgi.o thread.o main.o RM = rm -f @@ -10,7 +10,7 @@ BIN = server all : $(BIN) stream stream : stream.c - $(CXX) -o stream stream.c -I/usr/include/opencv -I/usr/include/opencv2/highgui -L/usr/lib -lopencv_highgui -lopencv_core -lopencv_ml -lopencv_imgproc + $(CXX) -o stream stream.c -I/usr/include/opencv -I/usr/include/opencv2/highgui -L/usr/lib -lopencv_highgui -lopencv_core -lopencv_ml -lopencv_imgproc -lm $(BIN) : $(OBJ) -- 2.20.1