Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux nanomsg static lib fix #582

Merged
merged 3 commits into from
Feb 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions iguana/build_static_nanomsg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash

#Check if libnanomsg-static.a file is already exists or not
file="../OSlibs/linux/$(uname -m)/libnanomsg-static.a"
if [ ! -f "$file" ]
then
echo "$0: File '${file}' not found."
#Download nanomsg library 1.0 stable
rm -rf nanomsgsrc
git clone https://github.com/nanomsg/nanomsg.git nanomsgsrc

#Create destination folder
mkdir nanomsglib

#Switch into nanomsgsrc folder
cd nanomsgsrc

#Create build directory and switch into it
mkdir build && cd build

#Compile
cmake .. -DCMAKE_INSTALL_PREFIX=../../nanomsglib/ -DCMAKE_BUILD_TYPE=Debug -DNN_STATIC_LIB=1
cmake --build .
ctest -C Debug .
cmake --build . --target install

cd ../..
pwd
mkdir -p ../OSlibs/linux/$(uname -m)/
cp -av nanomsglib/lib/libnanomsg.a ../OSlibs/linux/$(uname -m)/libnanomsg-static.a
fi


1 change: 1 addition & 0 deletions iguana/m_LP_StaticNanoMsg
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#./configure --enable-endomorphism --enable-module-ecdh --enable-module-schnorr --enable-module-rangeproof --enable-experimental --enable-module_recovery
rm -f ../agents/iguana *.o
git pull
./build_static_nanomsg.sh
cd secp256k1; ./m_unix; cd ..
cd ../crypto777; make -f m_LP_StaticNanoMsg all; make -f m_LP_StaticNanoMsg clean; cd ../iguana

Expand Down
2 changes: 2 additions & 0 deletions iguana/m_mm_StaticNanoMsg
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# author: fadedreamz@SuperNet.org
# date: Aug, 2017

./build_static_nanomsg.sh

LIB_ARCH=$(uname -m)

.PHONY: clean all
Expand Down