mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Merge pull request #1690 from lrusak/disable-lto
Enable -fPIC for some packages
This commit is contained in:
commit
f4913718d4
@ -40,7 +40,8 @@ PKG_CONFIGURE_OPTS_TARGET="--enable-static --disable-shared \
|
||||
--disable-experimental \
|
||||
--disable-test-coverage \
|
||||
--enable-largefile \
|
||||
--with-gnu-ld"
|
||||
--with-gnu-ld \
|
||||
--with-pic"
|
||||
|
||||
post_makeinstall_target() {
|
||||
rm -rf $INSTALL/usr/bin
|
||||
|
@ -30,5 +30,11 @@ PKG_LONGDESC="standalone SBC library"
|
||||
PKG_IS_ADDON="no"
|
||||
PKG_AUTORECONF="no"
|
||||
|
||||
PKG_CONFIGURE_OPTS_TARGET="--enable-static --disable-shared \
|
||||
--disable-tools --disable-tester"
|
||||
PKG_CONFIGURE_OPTS_TARGET="--enable-static \
|
||||
--disable-shared \
|
||||
--disable-tools \
|
||||
--disable-tester"
|
||||
|
||||
pre_configure_target() {
|
||||
CFLAGS="$CFLAGS -fPIC"
|
||||
}
|
||||
|
@ -35,3 +35,7 @@ PKG_CMAKE_OPTS_TARGET="-DHAVE_WORDS_BIGENDIAN_EXITCODE=1 \
|
||||
-DBUILD_TESTS=0 \
|
||||
-DBUILD_EXAMPLES=1 \
|
||||
-DBUILD_SHARED_LIBS=OFF"
|
||||
|
||||
pre_configure_target() {
|
||||
CFLAGS="$CFLAGS -fPIC"
|
||||
}
|
||||
|
@ -61,6 +61,9 @@ PKG_AUTORECONF="no"
|
||||
# mmap_size pragma.
|
||||
CFLAGS="$CFLAGS -DSQLITE_TEMP_STORE=3 -DSQLITE_DEFAULT_MMAP_SIZE=268435456"
|
||||
|
||||
# libsqlite3.a(sqlite3.o): requires dynamic R_X86_64_PC32 reloc against 'sqlite3_stricmp' which may overflow at runtime
|
||||
CFLAGS="$CFLAGS -fPIC"
|
||||
|
||||
pre_make_target() {
|
||||
# dont build parallel
|
||||
MAKEFLAGS=-j1
|
||||
|
@ -26,6 +26,10 @@ PKG_SECTION="devel"
|
||||
PKG_SHORTDESC="netbsd-libcurses portable edition"
|
||||
PKG_LONGDESC="netbsd-libcurses portable edition"
|
||||
|
||||
pre_make_target() {
|
||||
CFLAGS="$CFLAGS -fPIC"
|
||||
}
|
||||
|
||||
make_target() {
|
||||
make HOSTCC="$HOST_CC" PREFIX=/usr all-static
|
||||
}
|
||||
|
@ -36,6 +36,10 @@ PKG_CONFIGURE_OPTS_TARGET="bash_cv_wcwidth_broken=no \
|
||||
--with-curses \
|
||||
--without-purify"
|
||||
|
||||
pre_configure_target() {
|
||||
CFLAGS="$CFLAGS -fPIC"
|
||||
}
|
||||
|
||||
post_makeinstall_target() {
|
||||
rm -rf $INSTALL/usr/share/readline
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ make_target() {
|
||||
SHARED=no \
|
||||
CRYPTO="OPENSSL" \
|
||||
OPT="" \
|
||||
XCFLAGS="$CFLAGS" \
|
||||
XCFLAGS="$CFLAGS -fPIC" \
|
||||
XLDFLAGS="$LDFLAGS" \
|
||||
XLIBS="-lm"
|
||||
}
|
||||
@ -60,7 +60,7 @@ makeinstall_target() {
|
||||
SHARED=no \
|
||||
CRYPTO="OPENSSL" \
|
||||
OPT="" \
|
||||
XCFLAGS="$CFLAGS" \
|
||||
XCFLAGS="$CFLAGS -fPIC" \
|
||||
XLDFLAGS="$LDFLAGS" \
|
||||
XLIBS="-lm" \
|
||||
install
|
||||
@ -76,7 +76,7 @@ makeinstall_target() {
|
||||
SHARED=no \
|
||||
CRYPTO="OPENSSL" \
|
||||
OPT="" \
|
||||
XCFLAGS="$CFLAGS" \
|
||||
XCFLAGS="$CFLAGS -FPIC" \
|
||||
XLDFLAGS="$LDFLAGS" \
|
||||
XLIBS="-lm" \
|
||||
install
|
||||
|
@ -30,7 +30,7 @@ PKG_LONGDESC="This is a library that defines common error values for all GnuPG c
|
||||
PKG_IS_ADDON="no"
|
||||
PKG_AUTORECONF="no"
|
||||
|
||||
PKG_CONFIGURE_OPTS_TARGET="CC_FOR_BUILD=$HOST_CC --enable-static --disable-shared --disable-nls --disable-rpath --with-gnu-ld"
|
||||
PKG_CONFIGURE_OPTS_TARGET="CC_FOR_BUILD=$HOST_CC --enable-static --disable-shared --disable-nls --disable-rpath --with-gnu-ld --with-pic"
|
||||
|
||||
pre_configure_target() {
|
||||
# inspired by openembedded
|
||||
|
@ -37,6 +37,7 @@ PKG_CONFIGURE_OPTS_TARGET="ac_cv_func_malloc_0_nonnull=yes \
|
||||
ac_cv_path_UMOUNT_PATH="/usr/bin/umount"
|
||||
KMOD=/usr/bin/kmod \
|
||||
--disable-nls \
|
||||
--disable-lto \
|
||||
--disable-dbus \
|
||||
--disable-utmp \
|
||||
--disable-coverage \
|
||||
|
@ -30,7 +30,7 @@ PKG_LONGDESC="TinyXML is a simple, small, C++ XML parser that can be easily inte
|
||||
PKG_IS_ADDON="no"
|
||||
PKG_AUTORECONF="yes"
|
||||
|
||||
PKG_CONFIGURE_OPTS_TARGET="--enable-static --disable-shared"
|
||||
PKG_CONFIGURE_OPTS_TARGET="--enable-static --disable-shared --with-pic"
|
||||
|
||||
pre_configure_target() {
|
||||
export CFLAGS="$CFLAGS -fPIC"
|
||||
|
Loading…
x
Reference in New Issue
Block a user