lang/perl: Override CCFLAGS configuration symbol in perlmod
authorMarcel Denia <naoir@gmx.net>
Mon, 21 Jul 2014 01:25:55 +0000 (03:25 +0200)
committerMarcel Denia <naoir@gmx.net>
Mon, 21 Jul 2014 01:29:17 +0000 (03:29 +0200)
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>
lang/perl/perlmod.mk

index ab2f4fedaad015f24f79937b4ce28b19fd234df9..09d2f465acc01bd161d9158abfdbf8fb12a433b1 100644 (file)
@@ -20,6 +20,7 @@ define perlmod/Configure
                $(1) \
                AR=ar \
                CC=$(GNU_TARGET_NAME)-gcc \
+               CCFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
                CCCDLFLAGS=-fPIC \
                CCDLFLAGS=-Wl,-E \
                DLEXT=so \