Index: deps/Makefile --- deps/Makefile.orig 2018-11-22 11:26:38.000000000 +0100 +++ deps/Makefile 2018-11-23 08:44:12.684882000 +0100 @@ -58,7 +58,7 @@ LUA_CFLAGS= -D__C99FEATURES__=1 endif -LUA_CFLAGS+= -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' $(CFLAGS) +LUA_CFLAGS+= -O2 -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' $(CFLAGS) LUA_LDFLAGS+= $(LDFLAGS) # lua's Makefile defines AR="ar rcu", which is unusual, and makes it more # challenging to cross-compile lua (and redis). These defines make it easier Index: deps/hiredis/net.h --- deps/hiredis/net.h.orig 2018-11-22 11:26:38.000000000 +0100 +++ deps/hiredis/net.h 2018-11-23 08:44:12.685261000 +0100 @@ -37,7 +37,7 @@ #include "hiredis.h" -#if defined(__sun) +#if defined(__sun) || defined(__FreeBSD__) #define AF_LOCAL AF_UNIX #endif Index: deps/linenoise/Makefile --- deps/linenoise/Makefile.orig 2018-11-22 11:26:38.000000000 +0100 +++ deps/linenoise/Makefile 2018-11-23 08:44:12.685597000 +0100 @@ -1,6 +1,6 @@ STD= -WARN= -Wall -OPT= -Os +WARN= +OPT= R_CFLAGS= $(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) R_LDFLAGS= $(LDFLAGS) Index: src/Makefile --- src/Makefile.orig 2018-11-23 08:44:12.685944000 +0100 +++ src/Makefile 2018-11-23 08:46:07.455418000 +0100 @@ -20,13 +20,13 @@ NODEPS:=clean distclean # Default settings -STD=-std=c99 -pedantic -DREDIS_STATIC='' +STD=-std=c99 -DREDIS_STATIC='' ifneq (,$(findstring clang,$(CC))) ifneq (,$(findstring FreeBSD,$(uname_S))) STD+=-Wno-c11-extensions endif endif -WARN=-Wall -W -Wno-missing-field-initializers +WARN=-Wno-missing-field-initializers OPT=$(OPTIMIZATION) PREFIX?=/usr/local Index: src/mkreleasehdr.sh --- src/mkreleasehdr.sh.orig 2018-11-22 11:26:38.000000000 +0100 +++ src/mkreleasehdr.sh 2018-11-23 08:44:12.686333000 +0100 @@ -1,6 +1,6 @@ #!/bin/sh GIT_SHA1=`(git show-ref --head --hash=8 2> /dev/null || echo 00000000) | head -n1` -GIT_DIRTY=`git diff --no-ext-diff 2> /dev/null | wc -l` +GIT_DIRTY=`(git diff --no-ext-diff) 2>/dev/null | wc -l` BUILD_ID=`uname -n`"-"`date +%s` if [ -n "$SOURCE_DATE_EPOCH" ]; then BUILD_ID=$(date -u -d "@$SOURCE_DATE_EPOCH" +%s 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" +%s 2>/dev/null || date -u %s)