gcc: add support for aarch64.
This commit is contained in:
parent
ea1642b902
commit
9a23209af6
|
@ -44,9 +44,11 @@ case "$XBPS_TARGET_MACHINE" in
|
|||
armv6l) _triplet="arm-linux-gnueabihf";;
|
||||
armv7l) _triplet="arm-linux-gnueabihf7";;
|
||||
arm*-musl) _triplet="arm-linux-musleabi";;
|
||||
aarch64) _triplet="aarch64-linux-gnu";;
|
||||
esac
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
*-musl) depends+=" musl";;
|
||||
aarch64) depends+=" glibc-devel";;
|
||||
*) subpackages+=" libsanitizer libsanitizer-devel"; depends+=" glibc-devel";;
|
||||
esac
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
|
@ -75,6 +77,7 @@ do_configure() {
|
|||
armv5*) _args+=" --with-arch=armv5te --with-float=soft";;
|
||||
armv6l*) _args+=" --with-arch=armv6 --with-fpu=vfp --with-float=hard";;
|
||||
armv7l*) _args+=" --with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard";;
|
||||
aarch64*) _args+=" --with-arch=armv8-a";;
|
||||
esac
|
||||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
|
@ -86,7 +89,7 @@ do_configure() {
|
|||
_args+=" --disable-multilib --host=$XBPS_CROSS_TRIPLET --with-build-sysroot=${XBPS_CROSS_BASE}"
|
||||
else
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
arm*) _args+=" --build=${_triplet}";;
|
||||
arm*|aarch64*) _args+=" --build=${_triplet}";;
|
||||
esac
|
||||
_langs="c,c++,objc,obj-c++,fortran,lto,go,java"
|
||||
_args+=" --enable-java-gc=boehm --enable-fast-character"
|
||||
|
@ -103,6 +106,7 @@ do_configure() {
|
|||
fi
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
*-musl) _args+=" --disable-libsanitizer";;
|
||||
aarch64*) _args+=" --disable-libsanitizer";;
|
||||
esac
|
||||
|
||||
export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
|
||||
|
@ -135,7 +139,7 @@ pre_install() {
|
|||
}
|
||||
do_install() {
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
x86_64*)
|
||||
x86_64*|aarch64*)
|
||||
vmkdir usr/lib
|
||||
ln -sfr ${DESTDIR}/usr/lib ${DESTDIR}/usr/lib64
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue
Block a user