Skip to content

Commit 4e8f0f6

Browse files
authored
Merge pull request #28 from gorazdko/fix_linux_build
Fix linux build
2 parents 2f66da2 + da36ea3 commit 4e8f0f6

File tree

12 files changed

+99
-24
lines changed

12 files changed

+99
-24
lines changed

CLA-signed/CLA.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Contributor License Agreement
2+
3+
Version 1.0
4+
5+
Name: Gorazd Kovacic
6+
7+
8+
9+
Legal Jurisdiction: Wyoming, United States of America
10+
11+
Project: https://github.com/BlockchainCommons/bc-seedtool-cli
12+
13+
Date: 09-03-2020
14+
15+
## Purpose
16+
17+
This agreement gives Blockchain Commons, LLC the permission it needs in order to accept my contributions into its open software project and to manage the intellectual property in that project over time.
18+
19+
## License
20+
21+
I hereby license Blockchain Commons, LLC to:
22+
23+
1. do anything with my contributions that would otherwise infringe my copyright in them
24+
25+
2. do anything with my contributions that would otherwise infringe patents that I can or become able to license
26+
27+
3. sublicense these rights to others on any terms they like
28+
29+
## Reliability
30+
31+
I understand that Blockchain Commons will rely on this license. I may not revoke this license.
32+
33+
## Awareness
34+
35+
I promise that I am familiar with legal rules, like ["work made for hire" rules](http://worksmadeforhire.com), that can give employers and clients ownership of intellectual property in work that I do. I am also aware that legal agreements I might sign, like confidential information and invention assignment agreements, will usually give ownership of intellectual property in my work to employers, clients, and companies that I found. If someone else owns intellectual property in my work, I need their permission to license it.
36+
37+
## Copyright Guarantee
38+
39+
I promise not to offer contributions to the project that contain copyrighted work that I do not have legally binding permission to contribute under these terms. When I offer a contribution with permission, I promise to document in the contribution who owns copyright in what work, and how they gave permission to contribute it. If I later become aware that one of my contributions may have copyrighted work of others that I did not have permission to contribute, I will notify Blockchain Commons, in confidence, immediately.
40+
41+
## Patent Guarantee
42+
43+
I promise not to offer contributions to the project that I know infringe patents of others that I do not have permission to contribute under these terms.
44+
45+
## Open Source Guarantee
46+
47+
I promise not to offer contributions that contain or depend on the work of others, unless that work is available under a license that [Blue Oak Council rates bronze or better](https://blueoakconcil.org/list), such as the MIT License, two- or three-clause BSD License, the Apache License Version 2.0, or the Blue Oak Model License 1.0.0. When I offer a contribution containing or depending on others' work, I promise to document in the contribution who licenses that work, along with copies of their license terms.
48+
49+
## Disclaimers
50+
51+
***As far as the law allows, my contributions come as is, without any warranty or condition. Other than under [Copyright Guarantee](#copyright-guarantee), [Patent Guarantee](#patent-guarantee), or [Open Source Guarantee](#open-source-guarantee), I will not be liable to anyone for any damages related to my contributions or this contributor license agreement, under any kind of legal claim.***
52+
53+
---
54+
55+
To sign this Contributor License Agreement, fill in `$name`, `$email`, and `$date` above. Then sign using GPG using the following command `gpg --armor --clearsign --output CLA.YOURGITHUBNAME.YOURGPGFINGERPRINT.asc CLA.md`, then either submit your signed Contributor License Agreement to this repo as a GPG signed Pull Request or email it to [[email protected]](mailto:[email protected]).
56+

Makefile.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
# Licensed under the "BSD-2-Clause Plus Patent License"
88
#
99

10+
UNAME := $(shell uname)
11+
ifeq ($(UNAME), Linux)
12+
SHELL := /bin/bash
13+
endif
14+
1015
# Package-specific substitution variables
1116
package = @PACKAGE_NAME@
1217
version = @PACKAGE_VERSION@

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,35 @@ See [`MANUAL.md`](MANUAL.md) for details, many more examples, and version histor
135135

136136
These dependencies are automatically installed as submodules when you run the build script. This is the recommended way to install.
137137

138+
### MacOS
139+
138140
```bash
139141
$ ./build.sh
140142
$ sudo make install
141143
```
142144

145+
### Linux
146+
147+
Make sure you have llvm/clang, libc++ and libc++abi installed. All of them with
148+
a minimum recommended version 10.
149+
150+
#### Ubuntu and Debian
151+
152+
```bash
153+
$ sudo apt-get install make
154+
155+
$ wget https://apt.llvm.org/llvm.sh
156+
$ chmod +x llvm.sh
157+
$ sudo ./llvm.sh 10 # version 10
158+
159+
$ sudo apt-get install libc++-10-dev libc++abi-10-dev
160+
```
161+
162+
```bash
163+
$ export CC="clang-10" && export CXX="clang++-10" && ./build.sh
164+
$ sudo make install
165+
```
166+
143167
## Alternative Installation
144168

145169
This sequence does *not* install the dependencies from submodules; instead they must be installed in the usual places on the build system, otherwise the `./configure` step below will fail.
@@ -149,6 +173,7 @@ $ ./configure
149173
$ make
150174
$ sudo make install
151175
```
176+
*Note:* On Linux the first step is `./configure CC=clang-10 CXX=clang++-10`
152177

153178
## Incremental Builds
154179

configure

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3753,19 +3753,6 @@ LIBS=$ac_check_lib_save_LIBS
37533753
fi
37543754
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bc_bytewords_bytewords_encode" >&5
37553755
$as_echo "$ac_cv_lib_bc_bytewords_bytewords_encode" >&6; }
3756-
if test "x$ac_cv_lib_bc_bytewords_bytewords_encode" = xyes; then :
3757-
cat >>confdefs.h <<_ACEOF
3758-
#define HAVE_LIBBC_BYTEWORDS 1
3759-
_ACEOF
3760-
3761-
LIBS="-lbc-bytewords $LIBS"
3762-
3763-
else
3764-
3765-
echo "### Error! libbc-bytewords must be installed first."
3766-
exit -1
3767-
3768-
fi
37693756

37703757
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for argp_parse in -largp" >&5
37713758
$as_echo_n "checking for argp_parse in -largp... " >&6; }
@@ -5820,4 +5807,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
58205807
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
58215808
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
58225809
fi
5823-

configure.ac

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ AC_CHECK_LIB([bc-bip39], [bip39_mnemonic_from_word], [], [
2929
echo "### Error! libbc-bip39 must be installed first."
3030
exit -1
3131
])
32-
AC_CHECK_LIB([bc-bytewords], [bytewords_encode], [], [
33-
echo "### Error! libbc-bytewords must be installed first."
34-
exit -1
35-
])
3632
AC_CHECK_LIB([argp], [argp_parse], [], [
3733
echo "### Error! argp must be installed first. Try 'brew install argp-standalone'."
3834
exit -1

deps/bc-crypto-base

0 commit comments

Comments
 (0)