Merge pull request #4139 from stefansaraev/buildsys

cosmetics ;)
This commit is contained in:
Stephan Raue 2015-05-10 20:23:13 +02:00
commit d30d87f01d
6 changed files with 16 additions and 12 deletions

View File

@ -32,8 +32,6 @@ PKG_LONGDESC="Enca detects the encoding of text files, on the basis of knowledge
PKG_IS_ADDON="no"
PKG_AUTORECONF="yes"
export CFLAGS="$CFLAGS -fPIC -DPIC"
PKG_MAKEINSTALL_OPTS_TARGET="-C lib"
PKG_CONFIGURE_OPTS_TARGET="ac_cv_file__dev_random=yes \
ac_cv_file__dev_urandom=no \
@ -47,6 +45,10 @@ PKG_CONFIGURE_OPTS_TARGET="ac_cv_file__dev_random=yes \
--disable-rpath \
--with-gnu-ld"
pre_configure_target() {
export CFLAGS="$CFLAGS -fPIC -DPIC"
}
pre_make_target() {
make CC="$HOST_CC" \
CPPFLAGS="$HOST_CPPFLAGS" \

View File

@ -42,8 +42,10 @@ PKG_CONFIGURE_OPTS_TARGET="--disable-shared \
--with-gnu-ld \
--without-glib"
export CFLAGS="$CFLAGS -DFRIBIDI_CHUNK_SIZE=4080"
export CFLAGS="$CFLAGS -fPIC -DPIC"
pre_configure_target() {
export CFLAGS="$CFLAGS -DFRIBIDI_CHUNK_SIZE=4080"
export CFLAGS="$CFLAGS -fPIC -DPIC"
}
post_makeinstall_target() {
mkdir -p $ROOT/$TOOLCHAIN/bin

View File

@ -33,8 +33,6 @@ PKG_LONGDESC="Squashfs is intended to be a general read-only filesystem, for arc
PKG_IS_ADDON="no"
PKG_AUTORECONF="no"
export LDFLAGS="$LDFLAGS -fwhole-program"
make_host() {
make -C squashfs-tools mksquashfs \
XZ_SUPPORT=1 LZO_SUPPORT=1 \

View File

@ -33,5 +33,3 @@ PKG_IS_ADDON="no"
PKG_AUTORECONF="no"
PKG_MAKE_OPTS_TARGET="binprefix=/usr sbindir=/usr/bin"
export LDFLAGS="$CFLAGS $LDFLAGS -fwhole-program"

View File

@ -35,9 +35,11 @@ PKG_AUTORECONF="yes"
PKG_CONFIGURE_OPTS_TARGET="--disable-utf8 \
--disable-nls"
export CFLAGS="$CFLAGS -I$SYSROOT_PREFIX/usr/include/ncurses"
export LDFLAGS=`echo $LDFLAGS | sed -e "s|-Wl,--as-needed||"`
export LIBS="$LIBS -lz"
pre_configure_target() {
export CFLAGS="$CFLAGS -I$SYSROOT_PREFIX/usr/include/ncurses"
export LDFLAGS=`echo $LDFLAGS | sed -e "s|-Wl,--as-needed||"`
export LIBS="$LIBS -lz"
}
post_makeinstall_target() {
rm -rf $INSTALL/usr/share/nano

View File

@ -32,7 +32,9 @@ PKG_LONGDESC="Xorg-launch-helper is a small utility that transforms the X server
PKG_IS_ADDON="no"
PKG_AUTORECONF="yes"
export LIBS="-lsystemd"
pre_configure_target() {
export LIBS="-lsystemd"
}
post_makeinstall_target() {
# do not install systemd services