|
@@ -9,6 +9,11 @@ ifneq ($(CONFIG_USE_EGLIBC),)
|
9
|
9
|
endif
|
10
|
10
|
PERL_CMD:=$(STAGING_DIR_HOST)/usr/bin/perl5.20.0
|
11
|
11
|
|
|
12
|
+MOD_CFLAGS_PERL:=$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)
|
|
13
|
+ifdef CONFIG_PERL_THREADS
|
|
14
|
+ MOD_CFLAGS_PERL+= -D_REENTRANT -D_GNU_SOURCE
|
|
15
|
+endif
|
|
16
|
+
|
12
|
17
|
# Module install prefix
|
13
|
18
|
PERL_SITELIB:=/usr/lib/perl5/5.20
|
14
|
19
|
PERL_TESTSDIR:=/usr/share/perl/perl-tests
|
|
@@ -54,7 +59,7 @@ define perlmod/Configure
|
54
|
59
|
$(1) \
|
55
|
60
|
AR=ar \
|
56
|
61
|
CC=$(GNU_TARGET_NAME)-gcc \
|
57
|
|
- CCFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
|
|
62
|
+ CCFLAGS="$(MOD_CFLAGS_PERL)" \
|
58
|
63
|
CCCDLFLAGS=-fPIC \
|
59
|
64
|
CCDLFLAGS=-Wl,-E \
|
60
|
65
|
DLEXT=so \
|