Files
Arch-R/packages/sysutils/remote/lirc/build
Stephan Raue 93d204d99a lirc:
- disable build with LTO support
2010-05-30 22:41:13 +02:00

38 lines
1006 B
Bash
Executable File

#!/bin/sh
. config/options
$SCRIPTS/build toolchain
# lirc 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||"`
if [ "$DEBUG" = yes ]; then
DEBUG_CONFIG="--enable-debug"
else
DEBUG_CONFIG="--disable-debug"
fi
export ac_cv_path_LIBUSB_CONFIG=
export ac_cv_func_forkpty=no
export ac_cv_lib_util_forkpty=no
export MAKEFLAGS=-j1
cd $PKG_BUILD
./configure --host=$TARGET_NAME \
--build=$HOST_NAME \
--prefix=/usr \
--sysconfdir=/etc \
--disable-shared \
--enable-sandboxed \
--without-x \
--with-driver=userspace \
--with-syslog=LOG_DAEMON \
$DEBUG_CONFIG
make
$MAKEINSTALL -C tools