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:
Stephan Raue 2011-09-30 15:54:28 +02:00
parent a192814931
commit e2e55a56cd
4 changed files with 9 additions and 2 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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

View File

@ -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"