mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
cross-x86_64-linux-musl: enable fortran
+ Enable cross fortran compiler + Add isl15-devel to makedepends
This commit is contained in:
parent
710e2431a6
commit
3e89e48505
1 changed files with 10 additions and 8 deletions
|
@ -9,8 +9,8 @@ _triplet=x86_64-linux-musl
|
||||||
_sysroot="/usr/${_triplet}"
|
_sysroot="/usr/${_triplet}"
|
||||||
|
|
||||||
pkgname=cross-${_triplet}
|
pkgname=cross-${_triplet}
|
||||||
version=0.22
|
version=0.23
|
||||||
revision=5
|
revision=1
|
||||||
short_desc="Cross toolchain for x86_64 with musl"
|
short_desc="Cross toolchain for x86_64 with musl"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
homepage="http://www.voidlinux.eu"
|
homepage="http://www.voidlinux.eu"
|
||||||
|
@ -32,8 +32,8 @@ nopie=yes
|
||||||
nodebug=yes
|
nodebug=yes
|
||||||
create_wrksrc=yes
|
create_wrksrc=yes
|
||||||
hostmakedepends="perl flex"
|
hostmakedepends="perl flex"
|
||||||
makedepends="zlib-devel gmp-devel mpfr-devel libmpc-devel"
|
makedepends="zlib-devel gmp-devel mpfr-devel libmpc-devel isl15-devel"
|
||||||
nostrip_files="libgcc.a libgcov.a libgcc_eh.a"
|
nostrip_files="libcaf_single.a libgcc.a libgcov.a libgcc_eh.a"
|
||||||
depends="${pkgname}-libc-${version}_${revision}"
|
depends="${pkgname}-libc-${version}_${revision}"
|
||||||
only_for_archs="i686 i686-musl x86_64"
|
only_for_archs="i686 i686-musl x86_64"
|
||||||
|
|
||||||
|
@ -110,8 +110,8 @@ _gcc_bootstrap() {
|
||||||
_args+=" libat_cv_have_ifunc=no"
|
_args+=" libat_cv_have_ifunc=no"
|
||||||
_args+=" ${_fpuflags}"
|
_args+=" ${_fpuflags}"
|
||||||
|
|
||||||
CFLAGS="-O0 -g0" CXXFLAGS="-O0 -g0" \
|
|
||||||
../gcc-${_gcc_version}/configure ${_args}
|
../gcc-${_gcc_version}/configure ${_args}
|
||||||
|
find -name Makefile -exec sed -i "{}" -e "s;^CFLAGS.*;& -fPIC -D__WCHAR_TYPE__=int;" \;
|
||||||
|
|
||||||
make ${makejobs}
|
make ${makejobs}
|
||||||
make install
|
make install
|
||||||
|
@ -165,8 +165,9 @@ _gcc_build() {
|
||||||
_args="--prefix=/usr"
|
_args="--prefix=/usr"
|
||||||
_args+=" --target=${_triplet}"
|
_args+=" --target=${_triplet}"
|
||||||
_args+=" --with-sysroot=${_sysroot}"
|
_args+=" --with-sysroot=${_sysroot}"
|
||||||
_args+=" --enable-languages=c,c++,lto"
|
_args+=" --enable-languages=c,c++,fortran,lto"
|
||||||
_args+=" --enable-lto"
|
_args+=" --enable-lto"
|
||||||
|
_args+=" --enable-libquadmath"
|
||||||
_args+=" --disable-libsanitizer"
|
_args+=" --disable-libsanitizer"
|
||||||
_args+=" --disable-multilib"
|
_args+=" --disable-multilib"
|
||||||
_args+=" --disable-libmpx"
|
_args+=" --disable-libmpx"
|
||||||
|
@ -177,6 +178,7 @@ _gcc_build() {
|
||||||
_args+=" ${_fpuflags}"
|
_args+=" ${_fpuflags}"
|
||||||
|
|
||||||
../gcc-${_gcc_version}/configure ${_args}
|
../gcc-${_gcc_version}/configure ${_args}
|
||||||
|
find -name Makefile -exec sed -i "{}" -e "s;^CFLAGS.*;& -fPIC -D__WCHAR_TYPE__=int;" \;
|
||||||
|
|
||||||
make ${makejobs}
|
make ${makejobs}
|
||||||
|
|
||||||
|
@ -187,7 +189,7 @@ do_build() {
|
||||||
# Ensure we use sane environment
|
# Ensure we use sane environment
|
||||||
unset CC CXX CPP LD AS AR RANLIB OBJDUMP READELF NM
|
unset CC CXX CPP LD AS AR RANLIB OBJDUMP READELF NM
|
||||||
unset CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
|
unset CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
|
||||||
export CFLAGS="-Os -pipe" CXXFLAGS="-Os -pipe"
|
export CFLAGS="-Os -pipe -fPIC" CXXFLAGS="-Os -pipe -fPIC"
|
||||||
|
|
||||||
for f in include lib libexec bin sbin; do
|
for f in include lib libexec bin sbin; do
|
||||||
if [ ! -d ${_sysroot}/usr/${f} ]; then
|
if [ ! -d ${_sysroot}/usr/${f} ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue