#!/bin/sh . config/options $SCRIPTS/build toolchain CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=32 -fPIC -DPIC" cd $PKG_BUILD ./configure --host=$TARGET_NAME \ --build=$HOST_NAME \ --prefix=/usr \ --sysconfdir=/etc \ --with-plugindir=/usr/lib \ --localstatedir=/var \ --disable-static \ --enable-shared \ --disable-python \ --disable-dependency-tracking \ --with-versioned=no \ sed -i 's/.*PKGLIBDIR.*/#define PKGLIBDIR ""/' include/config.h $MAKE $MAKE -C include DESTDIR=$SYSROOT_PREFIX install-data $MAKE -C src DESTDIR=$SYSROOT_PREFIX install-exec $MAKE -C utils DESTDIR=$SYSROOT_PREFIX install-pkgconfigDATA