Files
Arch-R/packages/python/system/dbus-python/build
Stephan Raue 36d272b4a3 dbus-python:
- disable build with LTO support
2010-05-30 22:39:08 +02:00

32 lines
821 B
Bash
Executable File

#!/bin/sh
. config/options
$SCRIPTS/build toolchain
$SCRIPTS/build Python
$SCRIPTS/build dbus
$SCRIPTS/build dbus-glib
. config/options.python
# dbus-python fails to compile with GCC 4.5.0's link time optimization.
CFLAGS=`echo $CFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||" -e "s|-fwhole-program||"`
CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||" -e "s|-fwhole-program||"`
LDFLAGS=`echo $LDFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||" -e "s|-fwhole-program||"`
cd $PKG_BUILD
./configure --host=$TARGET_NAME \
--build=$HOST_NAME \
--prefix=/usr \
--sysconfdir=/etc \
--disable-static \
--enable-shared \
--enable-thread
make
$MAKEINSTALL
$PYTHON -Wi -t $PYTHON_LIBDIR/compileall.py .