Fix portability issues discovered with fresh snap install.

ARCH=native fixes SIGILL issues on other amd64 processors.
Static library dependencies where supported.
Package libunbound2 in the snap.
This commit is contained in:
Casey Marshall 2016-09-11 18:14:38 -05:00
parent 0a56d83d3d
commit 823843eadb
3 changed files with 11 additions and 0 deletions

View file

@ -1,5 +1,6 @@
#!/bin/bash -e
export LD_LIBRARY_PATH=${SNAP_LIBRARY_PATH}:${SNAP}/usr/lib/x86_64-linux-gnu
export HOME=${SNAP_DATA}
cd ${SNAP_DATA}

View file

@ -1,5 +1,6 @@
#!/bin/bash -e
export LD_LIBRARY_PATH=${SNAP_LIBRARY_PATH}:${SNAP}/usr/lib/x86_64-linux-gnu
export HOME=${SNAP_USER_DATA}
cd ${SNAP_USER_DATA}

View file

@ -42,6 +42,12 @@ parts:
cmake-build:
plugin: cmake
configflags:
- -DBDB_STATIC=1
- -DUPNP_STATIC=1
- -DBoost_USE_STATIC_LIBS=1
- -DBoost_USE_STATIC_RUNTIME=1
- -DARCH=default
source: .
build-packages:
- gcc
@ -58,5 +64,8 @@ parts:
- bison
- doxygen
- graphviz
stage-packages:
- libunbound2
snap:
- bin
- usr