perl: Provide correct CFLAGS through perlmod.mk
In case threading is enabled, perl is compiled with -D_REENTRANT and -D_GNU_SOURCE, which, apart from other things, enables usage of off64_t. As we override module CFLAGS manually, we'll have to pass that flags as well. Signed-off-by: Marcel Denia <naoir@gmx.net>
This commit is contained in:
parent
90869f37ad
commit
7236fe401f
1 changed files with 6 additions and 1 deletions
|
@ -9,6 +9,11 @@ ifneq ($(CONFIG_USE_EGLIBC),)
|
||||||
endif
|
endif
|
||||||
PERL_CMD:=$(STAGING_DIR_HOST)/usr/bin/perl5.20.0
|
PERL_CMD:=$(STAGING_DIR_HOST)/usr/bin/perl5.20.0
|
||||||
|
|
||||||
|
MOD_CFLAGS_PERL:=$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)
|
||||||
|
ifdef CONFIG_PERL_THREADS
|
||||||
|
MOD_CFLAGS_PERL+= -D_REENTRANT -D_GNU_SOURCE
|
||||||
|
endif
|
||||||
|
|
||||||
# Module install prefix
|
# Module install prefix
|
||||||
PERL_SITELIB:=/usr/lib/perl5/5.20
|
PERL_SITELIB:=/usr/lib/perl5/5.20
|
||||||
PERL_TESTSDIR:=/usr/share/perl/perl-tests
|
PERL_TESTSDIR:=/usr/share/perl/perl-tests
|
||||||
|
@ -54,7 +59,7 @@ define perlmod/Configure
|
||||||
$(1) \
|
$(1) \
|
||||||
AR=ar \
|
AR=ar \
|
||||||
CC=$(GNU_TARGET_NAME)-gcc \
|
CC=$(GNU_TARGET_NAME)-gcc \
|
||||||
CCFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
|
CCFLAGS="$(MOD_CFLAGS_PERL)" \
|
||||||
CCCDLFLAGS=-fPIC \
|
CCCDLFLAGS=-fPIC \
|
||||||
CCDLFLAGS=-Wl,-E \
|
CCDLFLAGS=-Wl,-E \
|
||||||
DLEXT=so \
|
DLEXT=so \
|
||||||
|
|
Loading…
Reference in a new issue