From: Guus Sliepen Date: Sun, 13 Apr 2014 11:19:06 +0000 (+0200) Subject: Link meshlinkapp statically. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=12b11721f530eaeae3f82f781f19e598ab2a2544;p=meshlink Link meshlinkapp statically. This makes it easier to run and copy around. The order of the included libraries had to be changed to allow proper linking. --- diff --git a/meshlink-sample/Makefile b/meshlink-sample/Makefile index 128870a0..6c69ac8f 100644 --- a/meshlink-sample/Makefile +++ b/meshlink-sample/Makefile @@ -1,7 +1,7 @@ # Simple Makefile CC=gcc -LIBS= -lcrypto -lz -llzo2 -ldl -lpthread -L../src/.libs/ -lmeshlink +LIBS= -L../src/.libs/ -lmeshlink -lcrypto -lz -ldl -lpthread -static INCLUDE= -I../src/ LOADLIBES= $(LIBS) OBJS= meshlinkapp.o diff --git a/src/tincd.c b/src/tincd.c index 6ff347de..32447056 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -147,7 +147,7 @@ static bool parse_options(int argc, char **argv) { return true; } -int main(int argc, char **argv) { +int old_main(int argc, char **argv) { if(!parse_options(argc, argv)) return 1;