Files
Arch-R/packages/python/system/dbus-python/build
Stephan Raue 39508e5688 dbus-python:
- update link time optimization hack
2010-06-13 22:17:05 +02:00

31 lines
650 B
Bash
Executable File

#!/bin/sh
. config/options
$SCRIPTS/build toolchain
$SCRIPTS/build Python
$SCRIPTS/build dbus
$SCRIPTS/build dbus-glib
. config/options.python
# Fails to compile with GCC's link time optimization.
CFLAGS=`echo $CFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||"`
LDFLAGS=`echo $LDFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||"`
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 .