R: define __MUSL__ when building for musl libc
R people assumes it's defined for musl libc.
This commit is contained in:
parent
cefcdbac6d
commit
626e5eb256
1 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'R'
|
# Template file for 'R'
|
||||||
pkgname=R
|
pkgname=R
|
||||||
version=4.1.1
|
version=4.1.1
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--docdir=/usr/share/doc/R rdocdir=/usr/share/doc/R
|
configure_args="--docdir=/usr/share/doc/R rdocdir=/usr/share/doc/R
|
||||||
--with-blas$(vopt_if openblas '=openblas') --with-lapack
|
--with-blas$(vopt_if openblas '=openblas') --with-lapack
|
||||||
|
@ -37,6 +37,10 @@ case "$XBPS_TARGET_MACHINE" in
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
||||||
|
export CPPFLAGS=-D__MUSL__
|
||||||
|
fi
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
export R_BROWSER=/usr/bin/xdg-open
|
export R_BROWSER=/usr/bin/xdg-open
|
||||||
export R_PDFVIEWER=/usr/bin/xdg-open
|
export R_PDFVIEWER=/usr/bin/xdg-open
|
||||||
|
|
Loading…
Reference in a new issue