Skip to content

Commit

Permalink
Merge pull request #582 from satindergrewal/dev
Browse files Browse the repository at this point in the history
 linux nanomsg static lib fix
  • Loading branch information
jl777 authored Feb 7, 2018
2 parents a484a94 + 0d9620e commit e53d2a3
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
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

0 comments on commit e53d2a3

Please sign in to comment.