This makes it easier to run and copy around. The order of the included libraries had to be
changed to allow proper linking.
-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
INCLUDE= -I../src/
LOADLIBES= $(LIBS)
OBJS= meshlinkapp.o
-int main(int argc, char **argv) {
+int old_main(int argc, char **argv) {
if(!parse_options(argc, argv))
return 1;
if(!parse_options(argc, argv))
return 1;