mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 06:06:43 +00:00
config/arch.*: add '-D_FILE_OFFSET_BITS=64' optimization to i386 and x86_64 builds
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
a192814931
commit
e2e55a56cd
@ -7,5 +7,5 @@
|
||||
TARGET_SUBARCH=i686
|
||||
|
||||
# setup ARCH specific *FLAGS
|
||||
TARGET_CFLAGS="-march=$TARGET_CPU -m32"
|
||||
TARGET_CFLAGS="-march=$TARGET_CPU -m32 -D_FILE_OFFSET_BITS=64"
|
||||
TARGET_LDFLAGS="-march=$TARGET_CPU -m32"
|
||||
|
@ -7,5 +7,5 @@
|
||||
TARGET_SUBARCH=x86_64
|
||||
|
||||
# setup ARCH specific *FLAGS
|
||||
TARGET_CFLAGS="-fPIC -march=$TARGET_CPU -m64"
|
||||
TARGET_CFLAGS="-fPIC -march=$TARGET_CPU -m64 -D_FILE_OFFSET_BITS=64"
|
||||
TARGET_LDFLAGS="-fPIC -march=$TARGET_CPU -m64"
|
||||
|
@ -22,6 +22,11 @@
|
||||
|
||||
. config/options $1
|
||||
|
||||
# Filter out some problematic *FLAGS
|
||||
CFLAGS=`echo $CFLAGS | sed -e "s|-D_FILE_OFFSET_BITS=64||g"`
|
||||
LDFLAGS=`echo $LDFLAGS | sed -e "s|-D_FILE_OFFSET_BITS=64||g"`
|
||||
|
||||
|
||||
cd $PKG_BUILD
|
||||
./configure --host=$TARGET_NAME \
|
||||
--build=$HOST_NAME
|
||||
|
@ -29,10 +29,12 @@ strip_gold # Fails to compile using the gold linker.
|
||||
CFLAGS=`echo $CFLAGS | sed -e "s|-ffast-math||g"`
|
||||
CFLAGS=`echo $CFLAGS | sed -e "s|-Ofast|-O2|g"`
|
||||
CFLAGS=`echo $CFLAGS | sed -e "s|-O.|-O2|g"`
|
||||
CFLAGS=`echo $CFLAGS | sed -e "s|-D_FILE_OFFSET_BITS=64||g"`
|
||||
|
||||
LDFLAGS=`echo $LDFLAGS | sed -e "s|-ffast-math||g"`
|
||||
LDFLAGS=`echo $LDFLAGS | sed -e "s|-Ofast|-O2|g"`
|
||||
LDFLAGS=`echo $LDFLAGS | sed -e "s|-O.|-O2|g"`
|
||||
LDFLAGS=`echo $LDFLAGS | sed -e "s|-D_FILE_OFFSET_BITS=64||g"`
|
||||
|
||||
# set some CFLAGS we need
|
||||
CFLAGS="$CFLAGS -g -fno-stack-protector"
|
||||
|
Loading…
x
Reference in New Issue
Block a user