Loose support for building on Ubuntu 10.04

This commit is contained in:
Teddy Reed 2015-06-04 14:38:00 -07:00
parent b1b71d5fd0
commit ccb1c2cd69
2 changed files with 17 additions and 9 deletions

View File

@ -63,8 +63,8 @@ function install_gcc() {
[ -L /usr/bin/g++ ] && sudo unlink /usr/bin/g++
sudo ln -sf $TARGET/bin/gcc4.8.4 /usr/bin/gcc
sudo ln -sf $TARGET/bin/g++4.8.4 /usr/bin/g++
sudo ln -sf $TARGET/lib64/libstdc++.so.6.0.19 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19
sudo ln -sf $TARGET/lib64/libstdc++.so.6.0.19 /usr/lib/x86_64-linux-gnu/libstdc++.so.6
sudo ln -sf $TARGET/lib64/libstdc++.so.6.0.19 /usr/lib64/libstdc++.so.6.0.19
sudo ln -sf $TARGET/lib64/libstdc++.so.6.0.19 /usr/lib64/libstdc++.so.6
popd
fi
}
@ -352,11 +352,15 @@ function install_libaptpkg() {
SOURCE=apt-0.8.16-12.10.22
if provision libaptpkg /usr/local/lib/libapt-pkg.a; then
pushd $SOURCE
mkdir build
mkdir -p build
pushd build
../configure --prefix=/usr/local
make -j $THREADS
sudo make install
make -j $THREADS library
sudo cp bin/libapt-pkg.so.4.12.0 /usr/local/lib/
sudo ln -sf /usr/lib/local/libapt-pkg.so.4.12.0 /usr/local/lib/libapt-pkg.so
sudo cp bin/libapt-pkg.a /usr/local/lib/
sudo mkdir -p /usr/local/include/apt-pkg/
sudo cp include/apt-pkg/*.h /usr/local/include/apt-pkg/
popd
popd
fi

View File

@ -30,7 +30,6 @@ function main_ubuntu() {
package git-core
else
package git
package autopoint
fi
package wget
@ -43,11 +42,11 @@ function main_ubuntu() {
package python-pip
package python-dev
# package linux-headers-generic
package libcurl3-dev
package ruby-dev
package gcc
package doxygen
package autopoint
package libssl-dev
package liblzma-dev
package uuid-dev
@ -80,12 +79,17 @@ function main_ubuntu() {
package rubygems
# Temporary removes (so we can override default paths).
remove_package pkg-config
package autotools-dev
#remove_package pkg-config
remove_package autoconf
remove_package automake
remove_package libtool
install_pkgconfig
#install_pkgconfig
package pkg-config
package libcurl4-openssl-dev
install_autoconf
install_automake
install_libtool