mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 14:16:40 +00:00
glib:
- build and install with pcre support - update link time optimization hack
This commit is contained in:
parent
873bfe97f2
commit
5a2206962a
@ -4,27 +4,34 @@
|
||||
|
||||
$SCRIPTS/build toolchain
|
||||
$SCRIPTS/build zlib
|
||||
$SCRIPTS/build pcre
|
||||
$SCRIPTS/build glib-host
|
||||
|
||||
# glib 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||"`
|
||||
# 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
|
||||
|
||||
mkdir -p .build-target
|
||||
|
||||
cd .build-target
|
||||
|
||||
ac_cv_func_mmap_fixed_mapped='yes' \
|
||||
ac_cv_func_posix_getpwuid_r='yes' \
|
||||
ac_cv_func_posix_getgrgid_r='yes' \
|
||||
glib_cv_uscore='no' \
|
||||
ac_cv_func_printf_unix98='yes' \
|
||||
ac_cv_func_snprintf_c99='yes' \
|
||||
ac_cv_func_vsnprintf_c99='yes' \
|
||||
glib_cv_stack_grows='no' \
|
||||
glib_cv_uscore='no' \
|
||||
glib_cv_va_val_copy='no' \
|
||||
../configure --host=$TARGET_NAME \
|
||||
--build=$HOST_NAME \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--cache-file=config.cache \
|
||||
--enable-shared \
|
||||
--disable-static \
|
||||
--disable-debug \
|
||||
@ -38,8 +45,7 @@ glib_cv_stack_grows='no' \
|
||||
--disable-man \
|
||||
--disable-rebuilds \
|
||||
--disable-gtk-doc \
|
||||
|
||||
# --with-libiconv=gnu \
|
||||
--with-pcre=system \
|
||||
|
||||
make
|
||||
|
||||
|
@ -3,6 +3,7 @@
|
||||
. config/options
|
||||
|
||||
$SCRIPTS/install zlib
|
||||
$SCRIPTS/install pcre
|
||||
|
||||
mkdir -p $INSTALL/usr/lib
|
||||
cp -P $PKG_BUILD/.build-target/glib/.libs/libglib*.so* $INSTALL/usr/lib
|
||||
|
Loading…
x
Reference in New Issue
Block a user