Skip to content

Commit

Permalink
Improve build script
Browse files Browse the repository at this point in the history
  • Loading branch information
silviucpp committed Feb 12, 2022
1 parent 159b2fd commit f7b74e2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
### Change log:

- v2.8.1

- Improve build script

- v2.8.0

- Fix buffer resize issue
Expand Down
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ezlib

[![Build Status](https://travis-ci.com/silviucpp/ezlib.svg?branch=master)](https://travis-ci.com/github/silviucpp/ezlib)
![GitHub](https://img.shields.io/github/license/silviucpp/ezlib)
[![GitHub](https://img.shields.io/github/license/silviucpp/ezlib)](https://github.com/silviucpp/ezlib/blob/master/LICENSE)

*An zlib NIF library for Erlang optimised for streaming*

Expand Down
4 changes: 3 additions & 1 deletion build_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ if [ -f "$DEPS_LOCATION/$DESTINATION/libz2.a" ]; then
exit 0
fi

CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null || sysctl -n hw.ncpu`

BASELINE_REPO=https://github.com/madler/zlib.git
BASELINE_REV=cacf7f1d4e3d44d871b605da3b647f07d718623f

Expand Down Expand Up @@ -97,7 +99,7 @@ function BuildZlib()
export CFLAGS="$CPP_FLAGS"

fail_check ./configure --static
fail_check make
fail_check make -j $CPUS
rm -f libz2.a

case $ZLIB_FORK in
Expand Down
6 changes: 3 additions & 3 deletions c_src/nif.mk
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ UNAME_SYS = $(shell echo $(UNAME_SYS_ORG) | tr A-Z a-z)

ifeq ($(UNAME_SYS), darwin)
CC ?= cc
CFLAGS ?= -O3 -std=c99 -arch x86_64 -finline-functions -Wall
CXXFLAGS ?= -O3 -arch x86_64 -Wall
LDFLAGS ?= -arch x86_64
CFLAGS ?= -O3 -std=c99 -finline-functions -Wall
CXXFLAGS ?= -O3 -Wall
LDFLAGS ?=
else ifeq ($(UNAME_SYS), freebsd)
CC ?= cc
CFLAGS ?= -O3 -std=c99 -finline-functions -Wall
Expand Down
2 changes: 1 addition & 1 deletion src/ezlib.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{description, "Erlang zlib NIF library optimized for streaming"},
{licenses, ["MIT"]},
{links,[{"Github","https://github.com/silviucpp/ezlib"}]},
{vsn, "2.8.0"},
{vsn, "2.8.1"},
{registered, []},
{applications, [
kernel,
Expand Down

0 comments on commit f7b74e2

Please sign in to comment.