Merge pull request #1620 from vadmeste/make_builder_freebsd_support

Add needed changes to make mc buildable using make under FreeBSD
This commit is contained in:
Harshavardhana
2016-02-24 12:55:46 -08:00
2 changed files with 7 additions and 3 deletions
+4 -1
View File
@@ -150,6 +150,9 @@ is_supported_os() {
"SunOS")
supported=1
;;
"FreeBSD")
supported=1
;;
"*")
supported=0
;;
@@ -163,7 +166,7 @@ is_supported_os() {
is_supported_arch() {
local supported
case ${UNAME##* } in
"x86_64")
"x86_64" | "amd64")
supported=1
;;
"arm"*)
+3 -2
View File
@@ -19,8 +19,9 @@ _init() {
shopt -s extglob
PWD=$(env pwd)
GOPATH=$(go env GOPATH)
# Fetch real paths instead of symlinks before comparing them
PWD=$(env pwd -P)
GOPATH=$(realpath $(go env GOPATH))
}
main() {