#!/bin/sh # First argument of this script is the package name # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list # Saves CFLAGS and CXXFLAGS, and clears them. save_flags_no_optimizations # Applying patches (if any) apply_patches ${1} && cd ${LFS_TMP}/${1}-build && ../${1}/configure \ --prefix=/opt/${1} \ --enable-shared \ --enable-threads=posix \ --enable-languages=c,c++ && make bootstrap && make install && # Addition to /etc/ld.so.conf string_add "/opt/${1}/lib" /etc/ld.so.conf && ldconfig && chown -v -R root:root \ /opt/${1}/lib/gcc/i686-pc-linux-gnu/$(get_pkg_ver ${1})/include && # Restore original CFLAGS and CXXFLAGS values. restore_flags # Return last error exit $?