cross-arm-linux-gnueabihf: make this build again.
This commit is contained in:
parent
cfa5dac17b
commit
f318af00b2
1 changed files with 10 additions and 2 deletions
|
@ -7,7 +7,7 @@ _gmp_version=5.0.5
|
||||||
_mpfr_version=3.1.1
|
_mpfr_version=3.1.1
|
||||||
|
|
||||||
pkgname=cross-arm-linux-gnueabihf
|
pkgname=cross-arm-linux-gnueabihf
|
||||||
version=0.2
|
version=0.3
|
||||||
revision=1
|
revision=1
|
||||||
short_desc="Cross toolchain for the arm-linux-gnueabihf target"
|
short_desc="Cross toolchain for the arm-linux-gnueabihf target"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
@ -114,6 +114,7 @@ _glibc_headers() {
|
||||||
--host=${_CROSS_TARGET} --prefix=/usr \
|
--host=${_CROSS_TARGET} --prefix=/usr \
|
||||||
--with-headers=/usr/${_CROSS_TARGET}/usr/include \
|
--with-headers=/usr/${_CROSS_TARGET}/usr/include \
|
||||||
--config-cache --enable-add-ons=nptl,ports \
|
--config-cache --enable-add-ons=nptl,ports \
|
||||||
|
--enable-obsolete-rpc \
|
||||||
--enable-kernel=2.6.27 --with-float=hard || return 1
|
--enable-kernel=2.6.27 --with-float=hard || return 1
|
||||||
|
|
||||||
make -k install-headers cross_compiling=yes \
|
make -k install-headers cross_compiling=yes \
|
||||||
|
@ -141,6 +142,7 @@ _glibc_build() {
|
||||||
--host=${_CROSS_TARGET} --prefix=/usr \
|
--host=${_CROSS_TARGET} --prefix=/usr \
|
||||||
--with-headers=/usr/${_CROSS_TARGET}/usr/include \
|
--with-headers=/usr/${_CROSS_TARGET}/usr/include \
|
||||||
--config-cache --enable-add-ons=nptl,ports \
|
--config-cache --enable-add-ons=nptl,ports \
|
||||||
|
--enable-obsolete-rpc --disable-profile \
|
||||||
--with-float=hard --enable-kernel=2.6.27
|
--with-float=hard --enable-kernel=2.6.27
|
||||||
|
|
||||||
make ${makejobs} || return 1
|
make ${makejobs} || return 1
|
||||||
|
@ -237,7 +239,9 @@ _gcc_final() {
|
||||||
ln -sfr ${_CROSS_SYSROOT}/usr/include/gnu/stubs-hard.h \
|
ln -sfr ${_CROSS_SYSROOT}/usr/include/gnu/stubs-hard.h \
|
||||||
${_CROSS_SYSROOT}/usr/include/gnu/stubs-soft.h
|
${_CROSS_SYSROOT}/usr/include/gnu/stubs-soft.h
|
||||||
|
|
||||||
export CC="gcc"
|
export CC="gcc" CFLAGS="-Os -pipe"
|
||||||
|
unset LD AS
|
||||||
|
|
||||||
# Make this link to target libs.
|
# Make this link to target libs.
|
||||||
if [ ! -f .sed_subst_done ]; then
|
if [ ! -f .sed_subst_done ]; then
|
||||||
sed -e "s, /lib/, ${_CROSS_SYSROOT}/lib/,g;s, /usr/lib/, ${_CROSS_SYSROOT}/usr/lib/,g" \
|
sed -e "s, /lib/, ${_CROSS_SYSROOT}/lib/,g;s, /usr/lib/, ${_CROSS_SYSROOT}/usr/lib/,g" \
|
||||||
|
@ -293,6 +297,8 @@ do_build() {
|
||||||
for f in include lib libexec bin sbin; do
|
for f in include lib libexec bin sbin; do
|
||||||
if [ ! -d ${_CROSS_SYSROOT}/usr/${f} ]; then
|
if [ ! -d ${_CROSS_SYSROOT}/usr/${f} ]; then
|
||||||
mkdir -p ${_CROSS_SYSROOT}/usr/${f}
|
mkdir -p ${_CROSS_SYSROOT}/usr/${f}
|
||||||
|
fi
|
||||||
|
if [ ! -h ${_CROSS_SYSROOT}/${f} ]; then
|
||||||
ln -sfr ${_CROSS_SYSROOT}/usr/${f} ${_CROSS_SYSROOT}/${f}
|
ln -sfr ${_CROSS_SYSROOT}/usr/${f} ${_CROSS_SYSROOT}/${f}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -312,6 +318,8 @@ do_install() {
|
||||||
for f in include lib libexec bin sbin; do
|
for f in include lib libexec bin sbin; do
|
||||||
if [ ! -d ${DESTDIR}/${_CROSS_SYSROOT}/usr/${f} ]; then
|
if [ ! -d ${DESTDIR}/${_CROSS_SYSROOT}/usr/${f} ]; then
|
||||||
mkdir -p ${DESTDIR}/${_CROSS_SYSROOT}/usr/${f}
|
mkdir -p ${DESTDIR}/${_CROSS_SYSROOT}/usr/${f}
|
||||||
|
fi
|
||||||
|
if [ ! -h ${DESTDIR}/${_CROSS_SYSROOT}/${f} ]; then
|
||||||
ln -sfr ${DESTDIR}/${_CROSS_SYSROOT}/usr/${f} \
|
ln -sfr ${DESTDIR}/${_CROSS_SYSROOT}/usr/${f} \
|
||||||
${DESTDIR}/${_CROSS_SYSROOT}/${f}
|
${DESTDIR}/${_CROSS_SYSROOT}/${f}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue