Skip to content

Commit

Permalink
Fix a compile problem on Alpine Linux. Fixes smarkets#14
Browse files Browse the repository at this point in the history
  • Loading branch information
mworrell committed Jul 2, 2020
1 parent 90b3dad commit 89d1fee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ priv/bcrypt_nif.so
logs/*
.eunit
rebar3
.rebar3
.rebar

## libtool
Expand Down
8 changes: 4 additions & 4 deletions c_src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ ifeq ($(UNAME_SYS), Darwin)
CFLAGS ?= -O3 -std=c99 -arch x86_64 -Wall -Wmissing-prototypes
LDFLAGS ?= -arch x86_64 -flat_namespace -undefined suppress
DRV_LDFLAGS = -flat_namespace -undefined suppress $(ERL_LDFLAGS)
else ifeq ($(UNAME_SYS), FreeBSD)
CC ?= cc
CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
DRV_LDFLAGS = $(ERL_LDFLAGS)
else ifeq ($(UNAME_SYS), Linux)
CC ?= gcc
CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes -D_BSD_SOURCE
DRV_LDFLAGS = $(ERL_LDFLAGS)
else # FreeBSD
CC ?= cc
CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
DRV_LDFLAGS = $(ERL_LDFLAGS)
endif
Expand Down

0 comments on commit 89d1fee

Please sign in to comment.