You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 with make on BSD
readlink uses -m flag : not present for readlink on BSD, only in GNU coreutils readlink
On BSD:
GNU make could be installed via package (gmake on OpenBSD)
GNU coreutils (readlink) is available in coreutils package 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/READLINK variables
# 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 make by ${MAKE}
replace readlink by ${READLINK}
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
For Bash scripts in
util/
(build-gnu.sh
,run-gnu-test.sh
,build-code_coverage.sh
...), commands formake
andreadlink
are not compatible with BSD OS (FreeBSD, NetBSD and OpenBSD).make
, not compatible withmake
on BSDreadlink
uses-m
flag : not present forreadlink
on BSD, only in GNU coreutilsreadlink
On BSD:
make
could be installed via package (gmake
on OpenBSD)readlink
) is available incoreutils
package on OpenBSDProposal to modify Bash scripts to be compatible with BSD OS and Linux (with GNU coreutils installed by default)
MAKE
/READLINK
variablesmake
by${MAKE}
readlink
by${READLINK}
The text was updated successfully, but these errors were encountered: