瀏覽代碼

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 年之前
父節點
當前提交
e04bd7368a
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      lang/perl/perlmod.mk

+ 1
- 0
lang/perl/perlmod.mk 查看文件

@@ -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 \