diff --git a/OSlibs/linux/x86_64/libnanomsg-static.a b/OSlibs/linux/x86_64/libnanomsg-static.a new file mode 100644 index 000000000..064e32591 Binary files /dev/null and b/OSlibs/linux/x86_64/libnanomsg-static.a differ diff --git a/crypto777/m_LP_StaticNanoMsg b/crypto777/m_LP_StaticNanoMsg new file mode 100755 index 000000000..f6487bc1d --- /dev/null +++ b/crypto777/m_LP_StaticNanoMsg @@ -0,0 +1,30 @@ +# Very basic makefile for compiling iguana in Linux with StaticNanoMsg +# derived from m_LP (used to compile iguana for linux) +# author: fadedreamz + +SRCS=$(wildcard *.c) +SRCS+=$(wildcard jpeg/*.c) +SRCS+=$(wildcard jpeg/unix/*.c) + +OBJS=$(SRCS:%.c=%.o) + +INCLUDE_DIRS+=-I/usr/lib/x86_64-linux-gnu/curl +PREPROCESSORS+=-DLIQUIDITY_PROVIDER=1 -DUSE_STATIC_NANOMSG + +CFLAGS+=-O2 $(PREPROCESSORS) $(INCLUDE_DIRS) + +update_repo: + git pull + +clean: + -rm $(OBJS) + +all: update_repo $(OBJS) static + @echo ' ================' + @echo '| crypto777 [OK] |' + @echo ' ================' + +static: $(OBJS) + ar rc ../agents/libcrypto777.a $(OBJS) + +.PHONY: update_repo clean all static \ No newline at end of file diff --git a/iguana/iguana777.h b/iguana/iguana777.h index adcb2db00..2c74858b5 100755 --- a/iguana/iguana777.h +++ b/iguana/iguana777.h @@ -55,8 +55,7 @@ #include "bus.h" #else*/ //#ifdef __APPLE__ -#if defined(__APPLE__) || defined(WIN32) - +#if defined(__APPLE__) || defined(WIN32) || defined(USE_STATIC_NANOMSG) #include "../crypto777/nanosrc/nn.h" #include "../crypto777/nanosrc/bus.h" #include "../crypto777/nanosrc/pubsub.h" diff --git a/iguana/m_LP_StaticNanoMsg b/iguana/m_LP_StaticNanoMsg new file mode 100755 index 000000000..b88e05e45 --- /dev/null +++ b/iguana/m_LP_StaticNanoMsg @@ -0,0 +1,12 @@ +#!/bin/bash +#./configure --enable-endomorphism --enable-module-ecdh --enable-module-schnorr --enable-module-rangeproof --enable-experimental --enable-module_recovery +rm -f ../agents/iguana *.o +git pull +cd secp256k1; ./m_unix; cd .. +cd ../crypto777; make -f m_LP_StaticNanoMsg all; make -f m_LP_StaticNanoMsg clean; cd ../iguana + +clang -g -Wno-deprecated -c -O2 -DLIQUIDITY_PROVIDER=1 -DUSE_STATIC_NANOMSG *.c ../basilisk/basilisk.c ../gecko/gecko.c ../datachain/datachain.c +clang -g -Wno-deprecated -c -DLIQUIDITY_PROVIDER=1 -DUSE_STATIC_NANOMSG main.c iguana777.c iguana_bundles.c ../basilisk/basilisk.c + + +clang -g -o ../agents/iguana *.o ../agents/libcrypto777.a ../OSlibs/linux/$(uname -m)/libnanomsg-static.a -lcurl -lssl -lcrypto -lpthread -lz -lm -lanl -lrt -lnsl