Add needed changes to make mc buildable using make under FreeBSD
This commit is contained in:
@@ -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"*)
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user