-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
For Bash scripts in util/ (build-gnu.sh, run-gnu-test.sh, build-code_coverage.sh...), commands for make and readlink are not compatible with BSD OS (FreeBSD, NetBSD and OpenBSD).
- GNU
make, not compatible withmakeon BSD readlinkuses-mflag : not present forreadlinkon BSD, only in GNU coreutilsreadlink
On BSD:
- GNU
makecould be installed via package (gmakeon OpenBSD) - GNU coreutils (
readlink) is available incoreutilspackage on OpenBSD
Proposal to modify Bash scripts to be compatible with BSD OS and Linux (with GNU coreutils installed by default)
- checks OS and defines
MAKE/READLINKvariables
# Check OS to use GNU coreutils and make: specific version on *BSD
case "$OSTYPE" in
*bsd*)
MAKE="gmake"
READLINK="greadlink"
;;
*)
MAKE="make"
READLINK="readlink"
;;
esac
- replace
makeby${MAKE} - replace
readlinkby${READLINK}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels