Browse Source

perl: Pass _LARGEFILE_SOURCE and _FILE_OFFSET_BITS in cflags

Fixes broken largefile support.

Signed-off-by: Marcel Denia <naoir@gmx.net>
lilik-openwrt-22.03
Marcel Denia 10 years ago
parent
commit
3c7528d2f4
19 changed files with 19 additions and 19 deletions
  1. +1
    -1
      lang/perl/files/config.sh-arm-mt.in
  2. +1
    -1
      lang/perl/files/config.sh-arm.in
  3. +1
    -1
      lang/perl/files/config.sh-armeb-mt.in
  4. +1
    -1
      lang/perl/files/config.sh-armeb.in
  5. +1
    -1
      lang/perl/files/config.sh-avr32-mt.in
  6. +1
    -1
      lang/perl/files/config.sh-avr32.in
  7. +1
    -1
      lang/perl/files/config.sh-i486-mt.in
  8. +1
    -1
      lang/perl/files/config.sh-i486.in
  9. +1
    -1
      lang/perl/files/config.sh-mips-mt.in
  10. +1
    -1
      lang/perl/files/config.sh-mips.in
  11. +1
    -1
      lang/perl/files/config.sh-mips64-mt.in
  12. +1
    -1
      lang/perl/files/config.sh-mips64.in
  13. +1
    -1
      lang/perl/files/config.sh-mipsel-mt.in
  14. +1
    -1
      lang/perl/files/config.sh-mipsel.in
  15. +1
    -1
      lang/perl/files/config.sh-powerpc-mt.in
  16. +1
    -1
      lang/perl/files/config.sh-powerpc.in
  17. +1
    -1
      lang/perl/files/config.sh-x86_64-mt.in
  18. +1
    -1
      lang/perl/files/config.sh-x86_64.in
  19. +1
    -1
      lang/perl/perlmod.mk

+ 1
- 1
lang/perl/files/config.sh-arm-mt.in View File

@ -53,7 +53,7 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccflags='-D_REENTRANT -D_GNU_SOURCE %%CFLAGS%%'
ccflags='-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 %%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
ccsymbols='__ARM_ARCH_3__=1'


+ 1
- 1
lang/perl/files/config.sh-arm.in View File

@ -53,7 +53,7 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccflags='%%CFLAGS%%'
ccflags='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 %%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
ccsymbols='__ARM_ARCH_3__=1'


+ 1
- 1
lang/perl/files/config.sh-armeb-mt.in View File

@ -52,7 +52,7 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccflags='-D_REENTRANT -D_GNU_SOURCE %%CFLAGS%%'
ccflags='-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 %%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
ccsymbols='__ARM_ARCH_3__=1'


+ 1
- 1
lang/perl/files/config.sh-armeb.in View File

@ -52,7 +52,7 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccflags='%%CFLAGS%%'
ccflags='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 %%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
ccsymbols='__ARM_ARCH_3__=1'


+ 1
- 1
lang/perl/files/config.sh-avr32-mt.in View File

@ -53,7 +53,7 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccflags='-D_REENTRANT -D_GNU_SOURCE %%CFLAGS%%'
ccflags='-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 %%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
ccsymbols=''


+ 1
- 1
lang/perl/files/config.sh-avr32.in View File

@ -53,7 +53,7 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccflags='%%CFLAGS%%'
ccflags='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 %%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
ccsymbols=''


+ 1
- 1
lang/perl/files/config.sh-i486-mt.in View File

@ -51,7 +51,7 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccflags='-D_REENTRANT -D_GNU_SOURCE %%CFLAGS%%'
ccflags='-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 %%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
ccsymbols=''


+ 1
- 1
lang/perl/files/config.sh-i486.in View File

@ -51,7 +51,7 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccflags='%%CFLAGS%%'
ccflags='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 %%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
ccsymbols=''


+ 1
- 1
lang/perl/files/config.sh-mips-mt.in View File

@ -53,7 +53,7 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccflags='-D_REENTRANT -D_GNU_SOURCE %%CFLAGS%%'
ccflags='-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 %%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
ccsymbols=''


+ 1
- 1
lang/perl/files/config.sh-mips.in View File

@ -53,7 +53,7 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccflags='%%CFLAGS%%'
ccflags='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 %%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
ccsymbols=''


+ 1
- 1
lang/perl/files/config.sh-mips64-mt.in View File

@ -53,7 +53,7 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccflags='-D_REENTRANT -D_GNU_SOURCE %%CFLAGS%%'
ccflags='-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 %%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
ccsymbols=''


+ 1
- 1
lang/perl/files/config.sh-mips64.in View File

@ -53,7 +53,7 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccflags='%%CFLAGS%%'
ccflags='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 %%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
ccsymbols=''


+ 1
- 1
lang/perl/files/config.sh-mipsel-mt.in View File

@ -51,7 +51,7 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccflags='-D_REENTRANT -D_GNU_SOURCE %%CFLAGS%%'
ccflags='-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 %%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
ccsymbols=''


+ 1
- 1
lang/perl/files/config.sh-mipsel.in View File

@ -51,7 +51,7 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccflags='%%CFLAGS%%'
ccflags='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 %%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
ccsymbols=''


+ 1
- 1
lang/perl/files/config.sh-powerpc-mt.in View File

@ -53,7 +53,7 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccflags='-D_REENTRANT -D_GNU_SOURCE %%CFLAGS%%'
ccflags='-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 %%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
ccsymbols='__gnu_linux__=1 __linux=1 __linux__=1 __unix=1 __unix__=1 system=linux system=posix system=unix'


+ 1
- 1
lang/perl/files/config.sh-powerpc.in View File

@ -53,7 +53,7 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccflags='%%CFLAGS%%'
ccflags='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 %%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
ccsymbols='__gnu_linux__=1 __linux=1 __linux__=1 __unix=1 __unix__=1 system=linux system=posix system=unix'


+ 1
- 1
lang/perl/files/config.sh-x86_64-mt.in View File

@ -51,7 +51,7 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccflags='-D_REENTRANT -D_GNU_SOURCE %%CFLAGS%%'
ccflags='-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 %%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
ccsymbols=''


+ 1
- 1
lang/perl/files/config.sh-x86_64.in View File

@ -51,7 +51,7 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccflags='%%CFLAGS%%'
ccflags='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 %%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
ccsymbols=''


+ 1
- 1
lang/perl/perlmod.mk View File

@ -9,7 +9,7 @@ ifneq ($(CONFIG_USE_GLIBC),)
endif
PERL_CMD:=$(STAGING_DIR_HOST)/usr/bin/perl5.20.0
MOD_CFLAGS_PERL:=$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)
MOD_CFLAGS_PERL:=-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(TARGET_CFLAGS) $(TARGET_CPPFLAGS)
ifdef CONFIG_PERL_THREADS
MOD_CFLAGS_PERL+= -D_REENTRANT -D_GNU_SOURCE
endif


Loading…
Cancel
Save