Use uname -m instead of uname -p, for Debian
On Debian uname -p returns 'unknown'.
This commit is contained in:
parent
3b3a13513d
commit
be9465a997
1 changed files with 4 additions and 4 deletions
|
|
@ -67,7 +67,7 @@ compile_r() {
|
|||
|
||||
# tools/config.guess in R versions older than 3.2.2 guess 'unknown' instead of 'pc'
|
||||
# test the version and properly set the flag.
|
||||
build_flag="--build=$(uname -p)-pc-linux-gnu"
|
||||
build_flag="--build=$(uname -m)-pc-linux-gnu"
|
||||
if _version_is_greater_than ${R_VERSION} 3.2.2; then
|
||||
build_flag=''
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue