2008-04-13 11:48:18 -07:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
source __BUILD_CONFIG
|
|
|
|
|
|
|
|
if [[ "x$1" = "xdebug" ]] ; then
|
|
|
|
CONF_EXTRA_FLAGS="--enable-debug"
|
|
|
|
elif [[ "x$1" = "xinstaller" ]] ; then
|
|
|
|
CONF_EXTRA_FLAGS="--enable-data --enable-installer
|
|
|
|
--with-installer-extdir=\"${PREFIX}/bin\" --with-installer-version=${INSTALLER_VERSION}"
|
|
|
|
fi
|
|
|
|
|
2008-04-13 15:25:15 -07:00
|
|
|
./autogen.sh || exit 1
|
2008-04-13 15:30:33 -07:00
|
|
|
./configure --target=${CROSSCOMPILETARGET} --host=${CROSSCOMPILETARGET} --enable-static --disable-shared \
|
2008-04-13 11:48:18 -07:00
|
|
|
--prefix="${PREFIX}" \
|
|
|
|
${CONF_EXTRA_FLAGS} \
|
|
|
|
CFLAGS="${CFLAGS}" \
|
|
|
|
CPPFLAGS="${CPPFLAGS}" \
|
2008-04-13 15:50:43 -07:00
|
|
|
LDFLAGS="${LDFLAGS}" \
|
|
|
|
CC_FOR_BUILD="gcc" \
|
2008-04-13 16:00:40 -07:00
|
|
|
CXX_FOR_BUILD="g++" \
|
2008-04-13 16:53:30 -07:00
|
|
|
CPPFLAGS_FOR_BUILD=" " \
|
|
|
|
PKGCONFIG_PREFIX="${PREFIX}" || exit 1
|
2008-04-13 15:25:15 -07:00
|
|
|
make -j3 || exit 1
|