Skip to content
Permalink
0af09a4ae7
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 55 lines (36 sloc) 1.14 KB
#!/bin/env beesh
SRCURL[0]="http://ftp.gnu.org/gnu/gcc/gcc-${PKGVERSION}/gcc-${PKGVERSION[2]}.6.tar.bz2"
#PATCHURL[0]="http://www.linuxfromscratch.org/blfs/downloads/6.1/gcc-3.4.3-no_fixincludes-1.patch"
#PATCHURL[1]="http://www.linuxfromscratch.org/blfs/downloads/6.1/gcc-3.4.3-linkonce-1.patch"
PGRP=( uncategorized )
BEE_CONFIGURE=compat
# EXCLUDE=""
PREFIX=/usr/local/gcc-${PKGVERSION}
LIBEXECDIR=${PREFIX}/lib
mee_patch() {
bee_patch
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
}
mee_configure() {
bee_configure \
--enable-shared \
--enable-threads=posix \
--enable-__cxa_atexit \
--enable-clocale=gnu \
--enable-languages=c,c++ \
--disable-multilib \
--with-system-zlib
}
mee_build() {
bee_build bootstrap
}
mee_install() {
# install does not work in parallel
MAKEFLAGS="" bee_install
mv ${D}${PREFIX}/lib64/* ${D}${PREFIX}/lib
rmdir ${D}${PREFIX}/lib64
ln -sv lib ${D}${PREFIX}/lib64
#/usr/local/gcc-3.3.6/lib/libstdc++.so.5
mkdir ${D}/usr/lib
ln -sv ${LIBDIR}/libstdc++.so.5 ${D}/usr/lib
}