Bladeren bron

lang/perl: Override CCFLAGS configuration symbol in perlmod

This makes external perl modules compile their native code with the
correct CFLAGS, not with the one host-perl is using.

Signed-off-by: Marcel Denia <naoir@gmx.net>
Marcel Denia 10 jaren geleden
bovenliggende
commit
e04bd7368a
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  1. 1
    0
      lang/perl/perlmod.mk

+ 1
- 0
lang/perl/perlmod.mk Bestand weergeven

@@ -20,6 +20,7 @@ define perlmod/Configure
20 20
 		$(1) \
21 21
 		AR=ar \
22 22
 		CC=$(GNU_TARGET_NAME)-gcc \
23
+		CCFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
23 24
 		CCCDLFLAGS=-fPIC \
24 25
 		CCDLFLAGS=-Wl,-E \
25 26
 		DLEXT=so \