mirror of
https://github.com/openwrt/packages.git
synced 2025-12-23 16:44:31 +04:00
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>
This commit is contained in:
@@ -20,6 +20,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)" \
|
||||||
CCCDLFLAGS=-fPIC \
|
CCCDLFLAGS=-fPIC \
|
||||||
CCDLFLAGS=-Wl,-E \
|
CCDLFLAGS=-Wl,-E \
|
||||||
DLEXT=so \
|
DLEXT=so \
|
||||||
|
|||||||
Reference in New Issue
Block a user