Skip to content

Commit

Permalink
Merge pull request #76 from m1el/master
Browse files Browse the repository at this point in the history
fixed libsodium build
  • Loading branch information
paixaop committed Jun 2, 2016
2 parents 7437e8c + 1759967 commit 98eaa01
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .dntrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ OUTPUT_PREFIX="sodium-"
TEST_CMD="\
cd /dnt/ && \
npm install && \
node_modules/.bin/node-gyp --nodedir /usr/src/node/ rebuild && \
node-gyp --nodedir /usr/src/node/ rebuild && \
make test; \
"
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,23 +158,21 @@ deps/libsodium/testing
.libs
Build
INSTALL
Makefile
Makefile.in
aclocal.m4
autom4te.cache
build
compile
confdefs.h
config.*
configure
configure.lineno
coverage.info
depcomp
android-toolchain
install-sh
libtool
libsodium.pc
libsodium-*
libsodium-*.pc
ltmain.sh
m4/argz.m4
m4/libtool.m4
Expand Down
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ ec:
libsodium:
ifeq (,$(wildcard ${STATIC_LIB}.*))
@echo Static libsodium was not found at ${STATIC_LIB} so compiling libsodium from source.
@cd $(LIBSODIUM_DIR)/ && ./configure \
--enable-static --enable-shared --with-pic --prefix="$(INSTALL_DIR)"
@cd $(LIBSODIUM_DIR)/ && ./autogen.sh
@cd $(LIBSODIUM_DIR)/ && ./configure --enable-static \
--enable-shared --with-pic --prefix="$(INSTALL_DIR)"
@cd $(LIBSODIUM_DIR)/ && make clean > /dev/null
@cd $(LIBSODIUM_DIR)/ && make -j3 check
@cd $(LIBSODIUM_DIR)/ && make -j3 install
Expand All @@ -71,7 +72,7 @@ else
endif

sodium: libsodium
$(BINDIR)/node-gyp rebuild
node-gyp rebuild

test: test-unit

Expand Down

0 comments on commit 98eaa01

Please sign in to comment.