From 89d536df5a740f518fb5455bca4b35e3d648d72b Mon Sep 17 00:00:00 2001 From: hedger Date: Sun, 29 Jan 2017 03:12:38 +0300 Subject: [PATCH] Fixed build script for *BSD (#743) --- make.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/make.sh b/make.sh index e8cc2eb0..538c93e2 100755 --- a/make.sh +++ b/make.sh @@ -80,6 +80,10 @@ uninstall() { fi } +[ -z "${UNAME}" ] && UNAME=$(uname) +[ -z "${MAKE}" ] && MAKE=make +#[ -n "${MAKE_JOBS}" ] && MAKE="$MAKE -j${MAKE_JOBS}" + if [ "$UNAME" = SunOS ]; then [ -z "${MAKE}" ] && MAKE=gmake INSTALL_BIN=ginstall @@ -91,9 +95,6 @@ if [ -n "`echo "$UNAME" | grep BSD`" ]; then PREFIX="${PREFIX-/usr/local}" fi -[ -z "${UNAME}" ] && UNAME=$(uname) -[ -z "${MAKE}" ] && MAKE=make -#[ -n "${MAKE_JOBS}" ] && MAKE="$MAKE -j${MAKE_JOBS}" export CC INSTALL_BIN PREFIX PKGCFGDIR LIBDIRARCH LIBARCHS CFLAGS LDFLAGS case "$1" in