export XBUILD="/usr" PATH=/sbin:/usr/sbin:$PATH:$XBUILD/bin export CFLAGS="-O2 -march=native -pipe -fPIC" export CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden" export PKG_CONFIG_PATH="${XBUILD}/lib${LIBDIRSUFFIX}/pkgconfig:/usr/lib/pkgconfig" export {,L}LIBDIR="${XBUILD}/lib${LIBDIRSUFFIX}:/usr/lib" export {,CXX}LDFLAGS="-L${XBUILD}/lib${LIBDIRSUFFIX}:/usr/lib${LIBDIRSUFFIX}" if [[ -z $(echo "$XBUILD" | grep '/usr') ]];then configureOptions="--sysconfdir=${XBUILD}/etc --localstatedir=${XBUILD}/var" else configureOptions='--sysconfdir=/etc --localstatedir=/var' fi export configureFlagsDefault="$configureOptions \ MANIFEST_TOOL=: \ --prefix=${XBUILD} \ --libdir=${XBUILD}/lib${LIBDIRSUFFIX} \ --exec-prefix= \ --bindir=${XBUILD}/bin \ --sbindir=${XBUILD}/sbin \ --datadir=${XBUILD}/share \ --includedir=${XBUILD}/include \ --libexecdir=${XBUILD}/libexec \ --mandir=${XBUILD}/share/man \ --infodir=${XBUILD}/share/info \ --disable-static \ --build=${ARCH}-pc-linux-gnu --host=${ARCH}-pc-linux-gnu --target=${ARCH}-pc-linux-gnu"